(getaclentry): Set a_id to -1 by default.
2002-11-24 Corinna Vinschen <corinna@vinschen.de>
+ * setfacl.c (getperm): Set only `other' permission bits.
+ (getaclentry): Set a_id to -1 by default.
+
+2002-11-24 Corinna Vinschen <corinna@vinschen.de>
+
* getfacl.c (permstr): Use `other' permission bits for requesting
ace permissions.
|| !strchr ("w-", in[1])
|| !strchr ("x-", in[2]))
return ILLEGAL_MODE;
- return (in[0] == 'r' ? S_IRUSR | S_IRGRP | S_IROTH : 0)
- | (in[1] == 'w' ? S_IWUSR | S_IWGRP | S_IWOTH : 0)
- | (in[2] == 'x' ? S_IXUSR | S_IXGRP | S_IXOTH : 0);
+ return (in[0] == 'r' ? S_IROTH : 0)
+ | (in[1] == 'w' ? S_IWOTH : 0)
+ | (in[2] == 'x' ? S_IXOTH : 0);
}
BOOL
char *c2;
ace->a_type = 0;
- ace->a_id = 0;
+ ace->a_id = -1;
ace->a_perm = 0;
if (!strncmp (c, "default:", 8)