aboutsummaryrefslogtreecommitdiff
path: root/libbb/appletlib.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2011-01-18 13:58:01 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2011-01-18 13:58:01 +0100
commitb9f2d9f7d9b4a9b6fbb6a28a8c0bcf8e0e3b1704 (patch)
tree7c989f0cd07bf8e7923a3d7d831e72048807b63b /libbb/appletlib.c
parent3b5acaa4323bd165077e60098af94ad9750d62fd (diff)
downloadbusybox-w32-b9f2d9f7d9b4a9b6fbb6a28a8c0bcf8e0e3b1704.tar.gz
busybox-w32-b9f2d9f7d9b4a9b6fbb6a28a8c0bcf8e0e3b1704.tar.bz2
busybox-w32-b9f2d9f7d9b4a9b6fbb6a28a8c0bcf8e0e3b1704.zip
mass removal of underscores from _BB_DIR_foo and _BB_SUID_foo
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 3e32fa1ef..fc3e962d5 100644
--- a/libbb/appletlib.c
+++ b/libbb/appletlib.c
@@ -574,12 +574,12 @@ static void check_suid(int applet_no)
574# endif 574# endif
575 check_need_suid: 575 check_need_suid:
576# endif 576# endif
577 if (APPLET_SUID(applet_no) == _BB_SUID_REQUIRE) { 577 if (APPLET_SUID(applet_no) == BB_SUID_REQUIRE) {
578 /* Real uid is not 0. If euid isn't 0 too, suid bit 578 /* Real uid is not 0. If euid isn't 0 too, suid bit
579 * is most probably not set on our executable */ 579 * is most probably not set on our executable */
580 if (geteuid()) 580 if (geteuid())
581 bb_error_msg_and_die("must be suid to work properly"); 581 bb_error_msg_and_die("must be suid to work properly");
582 } else if (APPLET_SUID(applet_no) == _BB_SUID_DROP) { 582 } else if (APPLET_SUID(applet_no) == BB_SUID_DROP) {
583 xsetgid(rgid); /* drop all privileges */ 583 xsetgid(rgid); /* drop all privileges */
584 xsetuid(ruid); 584 xsetuid(ruid);
585 } 585 }