summaryrefslogtreecommitdiff
path: root/utility.c
diff options
context:
space:
mode:
authorMatt Kraai2000-12-30 07:46:23 +0000
committerMatt Kraai2000-12-30 07:46:23 +0000
commite6e818309e9d415d23612040b3e8594a8feffe1b (patch)
tree2db782873b3bbcdf3001d8f38434302a5a7c92d2 /utility.c
parente9e182e2557c984d6cb7660e07e657c095051898 (diff)
downloadbusybox-e6e818309e9d415d23612040b3e8594a8feffe1b.zip
busybox-e6e818309e9d415d23612040b3e8594a8feffe1b.tar.gz
Improvements from Vladimir N. Oleynik.
Diffstat (limited to 'utility.c')
-rw-r--r--utility.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/utility.c b/utility.c
index f222518..fa2067a 100644
--- a/utility.c
+++ b/utility.c
@@ -962,6 +962,7 @@ void my_getgrgid(char *group, long gid)
my_getid("/etc/group", group, gid, NULL);
}
+#if defined BB_ID
/* gets a gid given a user name */
long my_getpwnamegid(char *name)
{
@@ -969,6 +970,7 @@ long my_getpwnamegid(char *name)
my_getid("/etc/passwd", name, -1, &gid);
return gid;
}
+#endif
#endif
/* BB_CHMOD_CHOWN_CHGRP || BB_PS || BB_LS || BB_TAR \