aboutsummaryrefslogtreecommitdiff
path: root/libbb/xfuncs.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-05-02 23:01:32 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-05-02 23:01:32 +0000
commit3bc18253b081cc0b73f902036416fea47f2b61e5 (patch)
treec1f857892931a55c1f651b44d8f0c60121ea8e43 /libbb/xfuncs.c
parentf92df58d3d97bb75d7b12437d53dd97acfd01095 (diff)
downloadbusybox-3bc18253b081cc0b73f902036416fea47f2b61e5.tar.gz
fix suid config handling
Diffstat (limited to 'libbb/xfuncs.c')
-rw-r--r--libbb/xfuncs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libbb/xfuncs.c b/libbb/xfuncs.c
index 7e1109470..a85a046cf 100644
--- a/libbb/xfuncs.c
+++ b/libbb/xfuncs.c
@@ -386,13 +386,13 @@ char *bin2hex(char *p, const char *cp, int count)
// setgid() will fail and we'll _still_be_root_, which is bad.)
void xsetgid(gid_t gid)
{
- if (setgid(gid)) bb_error_msg_and_die("setgid");
+ if (setgid(gid)) bb_perror_msg_and_die("setgid");
}
// Die with an error message if we can't set uid. (See xsetgid() for why.)
void xsetuid(uid_t uid)
{
- if (setuid(uid)) bb_error_msg_and_die("setuid");
+ if (setuid(uid)) bb_perror_msg_and_die("setuid");
}
// Return how long the file at fd is, if there's any way to determine it.