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>2009-05-06 15:54:24 +0400
committerCorinna Vinschen <corinna@vinschen.de>2009-05-06 15:54:24 +0400
commit05e6f7b2b99740cfde722dfff2752585581d2257 (patch)
tree1cdc59d28911808c97ca05aa736a43e3229db7d7 /winsup/utils/mkgroup.c
parent764d88e4a75f244b9c92af0ea27cb4bb86f14d4d (diff)
* 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/mkgroup.c')
-rw-r--r--winsup/utils/mkgroup.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/winsup/utils/mkgroup.c b/winsup/utils/mkgroup.c
index 3a3376f97..74de36c21 100644
--- a/winsup/utils/mkgroup.c
+++ b/winsup/utils/mkgroup.c
@@ -1,7 +1,7 @@
/* mkgroup.c:
Copyright 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
- 2007, 2008 Red Hat, Inc.
+ 2007, 2008, 2009 Red Hat, Inc.
This file is part of Cygwin.
@@ -244,7 +244,7 @@ enum_unix_groups (domlist_t *dom_or_machine, const char *sep, DWORD id_offset,
for (gstr = strtok (grp_list, ","); gstr; gstr = strtok (NULL, ","))
{
- if (!isdigit (gstr[0]) && gstr[0] != '-')
+ if (!isdigit ((unsigned char) gstr[0]) && gstr[0] != '-')
{
PWCHAR p = wcpcpy (grp, L"Unix Group\\");
ret = mbstowcs (p, gstr, GNLEN + 1);
@@ -276,7 +276,7 @@ enum_unix_groups (domlist_t *dom_or_machine, const char *sep, DWORD id_offset,
start = strtol (p, &p, 10);
if (!*p)
stop = start;
- else if (*p++ != '-' || !isdigit (*p)
+ else if (*p++ != '-' || !isdigit ((unsigned char) *p)
|| (stop = strtol (p, &p, 10)) < start || *p)
{
fprintf (stderr, "%s: Malformed unix group list entry '%s'. "
@@ -807,7 +807,7 @@ main (int argc, char **argv)
if (opt && (p = strchr (opt, ',')))
{
if (p == opt
- || !isdigit (p[1])
+ || !isdigit ((unsigned char) p[1])
|| (domlist[print_domlist].id_offset = strtol (p + 1, &ep, 10)
, *ep))
{