From 6d48d3ee2a5a6b5bded1591952d8105fafdf783a Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Thu, 30 Jul 2009 12:57:19 +0200 Subject: rename _BB_SUID_ALWAYS and NEVER into REQUIRE and DROP. No code changes. Signed-off-by: Denys Vlasenko --- libbb/appletlib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libbb/appletlib.c') diff --git a/libbb/appletlib.c b/libbb/appletlib.c index 835d42c57..0feaef3f3 100644 --- a/libbb/appletlib.c +++ b/libbb/appletlib.c @@ -569,12 +569,12 @@ static void check_suid(int applet_no) #endif check_need_suid: #endif - if (APPLET_SUID(applet_no) == _BB_SUID_ALWAYS) { + if (APPLET_SUID(applet_no) == _BB_SUID_REQUIRE) { /* Real uid is not 0. If euid isn't 0 too, suid bit * is most probably not set on our executable */ if (geteuid()) bb_error_msg_and_die("must be suid to work properly"); - } else if (APPLET_SUID(applet_no) == _BB_SUID_NEVER) { + } else if (APPLET_SUID(applet_no) == _BB_SUID_DROP) { xsetgid(rgid); /* drop all privileges */ xsetuid(ruid); } -- cgit v1.2.3