From b40b26d0200d676a8aa6427f82a3e9c12765b060 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 27 Feb 1997 04:31:46 +0000 Subject: [PATCH] if user/group olookup fails return NULL CVS patchset: 1461 CVS date: 1997/02/27 04:31:46 --- build/names.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/names.c b/build/names.c index f64a1f4..77cb8fe 100644 --- a/build/names.c +++ b/build/names.c @@ -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]; } -- 2.7.4