diff options
-rw-r--r-- | gnu/usr.bin/man/man/man.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gnu/usr.bin/man/man/man.c b/gnu/usr.bin/man/man/man.c index 6407939..72a9fd5 100644 --- a/gnu/usr.bin/man/man/man.c +++ b/gnu/usr.bin/man/man/man.c @@ -106,8 +106,8 @@ static char args[] = "M:P:S:adfhkp:w?"; #ifdef SETREUID uid_t ruid; uid_t euid; -uid_t rgid; -uid_t egid; +gid_t rgid; +gid_t egid; #endif int @@ -469,7 +469,7 @@ is_section (name) for (vs = section_list; *vs != NULL; vs++) if ((strcmp (*vs, name) == 0) - || (isdigit (name[0]) && strlen(name) == 1)) + || (isdigit ((unsigned char)name[0]) && strlen(name) == 1)) return strdup (name); return NULL; @@ -612,7 +612,7 @@ glob_for_file (path, section, name, cat) gf = glob_filename (pathname); - if ((gf == (char **) -1 || *gf == NULL) && isdigit (*section)) + if ((gf == (char **) -1 || *gf == NULL) && isdigit ((unsigned char)*section)) { if (cat) snprintf (pathname, sizeof(pathname), "%s/cat%s/%s.%c*", path, section, name, *section); @@ -621,7 +621,7 @@ glob_for_file (path, section, name, cat) gf = glob_filename (pathname); } - if ((gf == (char **) -1 || *gf == NULL) && isdigit (*section)) + if ((gf == (char **) -1 || *gf == NULL) && isdigit ((unsigned char)*section)) { if (cat) snprintf (pathname, sizeof(pathname), "%s/cat%s/%s.0*", path, section, name); |