* setfacl.c (getperm): Set only `other' permission bits.
(getaclentry): Set a_id to -1 by default.
This commit is contained in:
parent
ad2bc53e8f
commit
2d06bd1109
|
@ -1,3 +1,8 @@
|
||||||
|
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>
|
2002-11-24 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* getfacl.c (permstr): Use `other' permission bits for requesting
|
* getfacl.c (permstr): Use `other' permission bits for requesting
|
||||||
|
|
|
@ -66,9 +66,9 @@ mode_t getperm (char *in)
|
||||||
|| !strchr ("w-", in[1])
|
|| !strchr ("w-", in[1])
|
||||||
|| !strchr ("x-", in[2]))
|
|| !strchr ("x-", in[2]))
|
||||||
return ILLEGAL_MODE;
|
return ILLEGAL_MODE;
|
||||||
return (in[0] == 'r' ? S_IRUSR | S_IRGRP | S_IROTH : 0)
|
return (in[0] == 'r' ? S_IROTH : 0)
|
||||||
| (in[1] == 'w' ? S_IWUSR | S_IWGRP | S_IWOTH : 0)
|
| (in[1] == 'w' ? S_IWOTH : 0)
|
||||||
| (in[2] == 'x' ? S_IXUSR | S_IXGRP | S_IXOTH : 0);
|
| (in[2] == 'x' ? S_IXOTH : 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOL
|
BOOL
|
||||||
|
@ -77,7 +77,7 @@ getaclentry (action_t action, char *c, aclent_t *ace)
|
||||||
char *c2;
|
char *c2;
|
||||||
|
|
||||||
ace->a_type = 0;
|
ace->a_type = 0;
|
||||||
ace->a_id = 0;
|
ace->a_id = -1;
|
||||||
ace->a_perm = 0;
|
ace->a_perm = 0;
|
||||||
|
|
||||||
if (!strncmp (c, "default:", 8)
|
if (!strncmp (c, "default:", 8)
|
||||||
|
|
Loading…
Reference in New Issue