diff options
author | Rob Landley | 2006-07-16 08:06:34 +0000 |
---|---|---|
committer | Rob Landley | 2006-07-16 08:06:34 +0000 |
commit | afb94ecf2bb6c53ce2a381d6ce45a426243c76d9 (patch) | |
tree | 0390f5cfb0cfd70882175f7e383a30d8cb1527cc /networking/inetd.c | |
parent | 25c194fd1941a7ba67d68a09fa101bc54a756a14 (diff) | |
download | busybox-afb94ecf2bb6c53ce2a381d6ce45a426243c76d9.zip busybox-afb94ecf2bb6c53ce2a381d6ce45a426243c76d9.tar.gz |
Convert setuid/setgid users to xsetuid/xsetgid.
Diffstat (limited to 'networking/inetd.c')
-rw-r--r-- | networking/inetd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/networking/inetd.c b/networking/inetd.c index d50bbd3..54294b6 100644 --- a/networking/inetd.c +++ b/networking/inetd.c @@ -1513,11 +1513,11 @@ inetd_main (int argc, char *argv[]) if (sep->se_group) { pwd->pw_gid = grp->gr_gid; } - setgid ((gid_t) pwd->pw_gid); + xsetgid ((gid_t) pwd->pw_gid); initgroups (pwd->pw_name, pwd->pw_gid); - setuid ((uid_t) pwd->pw_uid); + xsetuid((uid_t) pwd->pw_uid); } else if (sep->se_group) { - setgid (grp->gr_gid); + xsetgid(grp->gr_gid); setgroups (1, &grp->gr_gid); } dup2 (ctrl, 0); |