diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2002-11-24 16:15:33 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2002-11-24 16:15:33 +0000 |
commit | ad2bc53e8fa572ba7ff061b9e75f1314438e58d4 (patch) | |
tree | eb4f5b1b3abf8bc79851a500a836133a65dd5c59 | |
parent | f8c8e13b7e16dba8c04adc6912a0610292488656 (diff) | |
download | newlib-ad2bc53e8fa572ba7ff061b9e75f1314438e58d4.zip newlib-ad2bc53e8fa572ba7ff061b9e75f1314438e58d4.tar.gz newlib-ad2bc53e8fa572ba7ff061b9e75f1314438e58d4.tar.bz2 |
* getfacl.c (permstr): Use `other' permission bits for requesting
ace permissions.
-rw-r--r-- | winsup/utils/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/utils/getfacl.c | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/winsup/utils/ChangeLog b/winsup/utils/ChangeLog index 899db33..ab41be3 100644 --- a/winsup/utils/ChangeLog +++ b/winsup/utils/ChangeLog @@ -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. diff --git a/winsup/utils/getfacl.c b/winsup/utils/getfacl.c index 3e996d8..db88f65 100644 --- a/winsup/utils/getfacl.c +++ b/winsup/utils/getfacl.c @@ -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; } |