* getfacl.c (permstr): Use `other' permission bits for requesting

ace permissions.
This commit is contained in:
Corinna Vinschen 2002-11-24 16:15:33 +00:00
parent f8c8e13b7e
commit ad2bc53e8f
2 changed files with 8 additions and 3 deletions

View File

@ -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>
* setfacl.c (usage): Add missing LF.

View File

@ -28,9 +28,9 @@ permstr (mode_t perm)
{
static char pbuf[4];
pbuf[0] = (perm & S_IREAD) ? 'r' : '-';
pbuf[1] = (perm & S_IWRITE) ? 'w' : '-';
pbuf[2] = (perm & S_IEXEC) ? 'x' : '-';
pbuf[0] = (perm & S_IROTH) ? 'r' : '-';
pbuf[1] = (perm & S_IWOTH) ? 'w' : '-';
pbuf[2] = (perm & S_IXOTH) ? 'x' : '-';
pbuf[3] = '\0';
return pbuf;
}