aboutsummaryrefslogtreecommitdiff
path: root/libbb/appletlib.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-07-30 12:57:19 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2009-07-30 12:57:19 +0200
commit6d48d3ee2a5a6b5bded1591952d8105fafdf783a (patch)
treea5d16bab6520f385101a77e7f15d05b3f875569c /libbb/appletlib.c
parentbe116490d620cd5c980a6e0567e33e666a4fa656 (diff)
downloadbusybox-w32-6d48d3ee2a5a6b5bded1591952d8105fafdf783a.tar.gz
busybox-w32-6d48d3ee2a5a6b5bded1591952d8105fafdf783a.tar.bz2
busybox-w32-6d48d3ee2a5a6b5bded1591952d8105fafdf783a.zip
rename _BB_SUID_ALWAYS and NEVER into REQUIRE and DROP. No code changes.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb/appletlib.c')
-rw-r--r--libbb/appletlib.c4
1 files changed, 2 insertions, 2 deletions
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)
569#endif 569#endif
570 check_need_suid: 570 check_need_suid:
571#endif 571#endif
572 if (APPLET_SUID(applet_no) == _BB_SUID_ALWAYS) { 572 if (APPLET_SUID(applet_no) == _BB_SUID_REQUIRE) {
573 /* Real uid is not 0. If euid isn't 0 too, suid bit 573 /* Real uid is not 0. If euid isn't 0 too, suid bit
574 * is most probably not set on our executable */ 574 * is most probably not set on our executable */
575 if (geteuid()) 575 if (geteuid())
576 bb_error_msg_and_die("must be suid to work properly"); 576 bb_error_msg_and_die("must be suid to work properly");
577 } else if (APPLET_SUID(applet_no) == _BB_SUID_NEVER) { 577 } else if (APPLET_SUID(applet_no) == _BB_SUID_DROP) {
578 xsetgid(rgid); /* drop all privileges */ 578 xsetgid(rgid); /* drop all privileges */
579 xsetuid(ruid); 579 xsetuid(ruid);
580 } 580 }