Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2002-11-24 19:15:33 +0300
committerCorinna Vinschen <corinna@vinschen.de>2002-11-24 19:15:33 +0300
commitad2bc53e8fa572ba7ff061b9e75f1314438e58d4 (patch)
treeeb4f5b1b3abf8bc79851a500a836133a65dd5c59 /winsup/utils/getfacl.c
parentf8c8e13b7e16dba8c04adc6912a0610292488656 (diff)
* getfacl.c (permstr): Use `other' permission bits for requesting
ace permissions.
Diffstat (limited to 'winsup/utils/getfacl.c')
-rw-r--r--winsup/utils/getfacl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/winsup/utils/getfacl.c b/winsup/utils/getfacl.c
index 3e996d879..db88f65d4 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;
}