aboutsummaryrefslogtreecommitdiff
path: root/winsup
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2002-11-24 16:15:33 +0000
committerCorinna Vinschen <corinna@vinschen.de>2002-11-24 16:15:33 +0000
commitad2bc53e8fa572ba7ff061b9e75f1314438e58d4 (patch)
treeeb4f5b1b3abf8bc79851a500a836133a65dd5c59 /winsup
parentf8c8e13b7e16dba8c04adc6912a0610292488656 (diff)
downloadnewlib-ad2bc53e8fa572ba7ff061b9e75f1314438e58d4.zip
newlib-ad2bc53e8fa572ba7ff061b9e75f1314438e58d4.tar.gz
newlib-ad2bc53e8fa572ba7ff061b9e75f1314438e58d4.tar.bz2
* getfacl.c (permstr): Use `other' permission bits for requesting
ace permissions.
Diffstat (limited to 'winsup')
-rw-r--r--winsup/utils/ChangeLog5
-rw-r--r--winsup/utils/getfacl.c6
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;
}