summaryrefslogtreecommitdiffstats
path: root/winsup/utils/setfacl.c
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2009-05-06 11:54:24 +0000
committerCorinna Vinschen <corinna@vinschen.de>2009-05-06 11:54:24 +0000
commit05e6f7b2b99740cfde722dfff2752585581d2257 (patch)
tree1cdc59d28911808c97ca05aa736a43e3229db7d7 /winsup/utils/setfacl.c
parent764d88e4a75f244b9c92af0ea27cb4bb86f14d4d (diff)
downloadcygnal-05e6f7b2b99740cfde722dfff2752585581d2257.tar.gz
cygnal-05e6f7b2b99740cfde722dfff2752585581d2257.tar.bz2
cygnal-05e6f7b2b99740cfde722dfff2752585581d2257.zip
* mkpasswd.c (current_user): Don't use HOMEDRIVE/HOMEPATH to generate
user's homedir. * mkgroup.c: Accommodate ctype changes. * mkpasswd.c: Ditto. * setfacl.c: Ditto. * ssp.c: Ditto.
Diffstat (limited to 'winsup/utils/setfacl.c')
-rw-r--r--winsup/utils/setfacl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/winsup/utils/setfacl.c b/winsup/utils/setfacl.c
index 8dcce4a73..5e77c63d5 100644
--- a/winsup/utils/setfacl.c
+++ b/winsup/utils/setfacl.c
@@ -1,6 +1,6 @@
/* setfacl.c
- Copyright 2000, 2001, 2002, 2003 Red Hat Inc.
+ Copyright 2000, 2001, 2002, 2003, 2006, 2008, 2009 Red Hat Inc.
Written by Corinna Vinschen <vinschen@redhat.com>
@@ -51,7 +51,7 @@ typedef enum {
mode_t getperm (char *in)
{
- if (isdigit (*in) && !in[1])
+ if (isdigit ((unsigned char) *in) && !in[1])
{
int i = atoi (in);
if (i < 0 || i > 7)
@@ -127,7 +127,7 @@ getaclentry (action_t action, char *c, aclent_t *ace)
if (action == Delete)
return FALSE;
}
- else if (isdigit (*c))
+ else if (isdigit ((unsigned char) *c))
{
char *c3;