if user/group olookup fails return NULL

CVS patchset: 1461
CVS date: 1997/02/27 04:31:46
This commit is contained in:
root 1997-02-27 04:31:46 +00:00
parent 2816621389
commit b40b26d020
1 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ char *getUname(uid_t uid)
if (pw) {
unames[x] = strdup(pw->pw_name);
} else {
unames[x] = "";
unames[x] = NULL;
}
return unames[x];
}
@ -122,7 +122,7 @@ char *getGname(gid_t gid)
if (gr) {
gnames[x] = strdup(gr->gr_name);
} else {
gnames[x] = "";
gnames[x] = NULL;
}
return gnames[x];
}