diff options
author | Andrey A. Chernov <ache@FreeBSD.org> | 2000-06-22 16:48:41 +0000 |
---|---|---|
committer | Andrey A. Chernov <ache@FreeBSD.org> | 2000-06-22 16:48:41 +0000 |
commit | 5bd653754af8d012e11e518278bbde0971626082 (patch) | |
tree | 4fe2e7ddea9c1b702a12ce61f4ced9dd3b561c7b /pw/pw_group.c | |
parent | 116e8ae5bdfbd5c8fac1dd39b8295975acdc58a8 (diff) | |
download | pw-darwin-5bd653754af8d012e11e518278bbde0971626082.tar.gz pw-darwin-5bd653754af8d012e11e518278bbde0971626082.tar.zst pw-darwin-5bd653754af8d012e11e518278bbde0971626082.zip |
Localize time/date.
Use ISO 8601 date in logs.
Fix wrong argument type in ctype functions.
Diffstat (limited to 'pw/pw_group.c')
-rw-r--r-- | pw/pw_group.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pw/pw_group.c b/pw/pw_group.c index 6042a68..c9af998 100644 --- a/pw/pw_group.c +++ b/pw/pw_group.c @@ -88,7 +88,7 @@ pw_group(struct userconf * cnf, int mode, struct cargs * args) if (a_name == NULL) errx(EX_DATAERR, "group name or id required"); - if (mode != M_ADD && grp == NULL && isdigit(*a_name->val)) { + if (mode != M_ADD && grp == NULL && isdigit((unsigned char)*a_name->val)) { (a_gid = a_name)->ch = 'g'; a_name = NULL; } @@ -220,7 +220,7 @@ pw_group(struct userconf * cnf, int mode, struct cargs * args) for (p = strtok(arg->val, ", \t"); p != NULL; p = strtok(NULL, ", \t")) { int j; if ((pwd = GETPWNAM(p)) == NULL) { - if (!isdigit(*p) || (pwd = getpwuid((uid_t) atoi(p))) == NULL) + if (!isdigit((unsigned char)*p) || (pwd = getpwuid((uid_t) atoi(p))) == NULL) errx(EX_NOUSER, "user `%s' does not exist", p); } /* |