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 | 1e27de559d679b242aaa482c232f2be295d2bf0e (patch) | |
tree | 53dd5c30922f8a2abdacd5bf4a7a03f390e9e87f /pw/pw_group.c | |
parent | 972568102323c8d0c9c190a7b280ae66c8e8b924 (diff) | |
download | pw-darwin-1e27de559d679b242aaa482c232f2be295d2bf0e.tar.gz pw-darwin-1e27de559d679b242aaa482c232f2be295d2bf0e.tar.zst pw-darwin-1e27de559d679b242aaa482c232f2be295d2bf0e.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); } /* |