OSDN Git Service

* getfacl.c (permstr): Use `other' permission bits for requesting
authorcorinna <corinna>
Sun, 24 Nov 2002 16:15:33 +0000 (16:15 +0000)
committercorinna <corinna>
Sun, 24 Nov 2002 16:15:33 +0000 (16:15 +0000)
ace permissions.

winsup/utils/ChangeLog
winsup/utils/getfacl.c

index 899db33..ab41be3 100644 (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.
index 3e996d8..db88f65 100644 (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;
 }