* getfacl.c (permstr): Use `other' permission bits for requesting
ace permissions.
This commit is contained in:
parent
f8c8e13b7e
commit
ad2bc53e8f
@ -1,3 +1,8 @@
|
|||||||
|
2002-11-24 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* getfacl.c (permstr): Use `other' permission bits for requesting
|
||||||
|
ace permissions.
|
||||||
|
|
||||||
2002-11-08 Corinna Vinschen <corinna@vinschen.de>
|
2002-11-08 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* setfacl.c (usage): Add missing LF.
|
* setfacl.c (usage): Add missing LF.
|
||||||
|
@ -28,9 +28,9 @@ permstr (mode_t perm)
|
|||||||
{
|
{
|
||||||
static char pbuf[4];
|
static char pbuf[4];
|
||||||
|
|
||||||
pbuf[0] = (perm & S_IREAD) ? 'r' : '-';
|
pbuf[0] = (perm & S_IROTH) ? 'r' : '-';
|
||||||
pbuf[1] = (perm & S_IWRITE) ? 'w' : '-';
|
pbuf[1] = (perm & S_IWOTH) ? 'w' : '-';
|
||||||
pbuf[2] = (perm & S_IEXEC) ? 'x' : '-';
|
pbuf[2] = (perm & S_IXOTH) ? 'x' : '-';
|
||||||
pbuf[3] = '\0';
|
pbuf[3] = '\0';
|
||||||
return pbuf;
|
return pbuf;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user