aboutsummaryrefslogtreecommitdiff
path: root/toys
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2013-11-28 20:18:04 -0600
committerRob Landley <rob@landley.net>2013-11-28 20:18:04 -0600
commit9e44a5841f0ab9bc03cefb5631c80f3e4e5a60fe (patch)
tree1a849db3a91432452eba881a75039bb43edb90ed /toys
parent9fff257357fee7a90e7e8b5b44c0abc18d019b64 (diff)
downloadtoybox-9e44a5841f0ab9bc03cefb5631c80f3e4e5a60fe.tar.gz
Move xgetpwuid() and xgetgrgid() into xwrap.c
Diffstat (limited to 'toys')
-rw-r--r--toys/posix/id.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/toys/posix/id.c b/toys/posix/id.c
index dbcf9a15..f40f6c1b 100644
--- a/toys/posix/id.c
+++ b/toys/posix/id.c
@@ -52,20 +52,6 @@ static void showid(char *header, unsigned u, char *s)
printf("%s%u(%s)", header, u, s);
}
-struct passwd *xgetpwuid(uid_t uid)
-{
- struct passwd *pwd = getpwuid(uid);
- if (!pwd) error_exit(NULL);
- return pwd;
-}
-
-struct group *xgetgrgid(gid_t gid)
-{
- struct group *group = getgrgid(gid);
- if (!group) error_exit(NULL);
- return group;
-}
-
void do_id(char *username)
{
int flags, i, ngroups, cmd_groups = toys.which->name[0] == 'g';