aboutsummaryrefslogtreecommitdiff
path: root/applets/applets.c
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-03-23 16:52:59 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-03-23 16:52:59 +0000
commite0fe93759339a9e043cd0489f5bfabd59b5fcb78 (patch)
tree0cb1b93dcb99252943f155504ea24f440fadb7e8 /applets/applets.c
parent1bb31928d5ae941f726de13f4d2255f432d85c2a (diff)
downloadbusybox-e0fe93759339a9e043cd0489f5bfabd59b5fcb78.tar.gz
- correct typo
Diffstat (limited to 'applets/applets.c')
-rw-r--r--applets/applets.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/applets/applets.c b/applets/applets.c
index bbe12034a..82a6417de 100644
--- a/applets/applets.c
+++ b/applets/applets.c
@@ -372,7 +372,7 @@ static void check_suid (struct BB_applet *applet)
} else
setuid (ruid); /* no suid -> drop */
} else {
- /* default: drop all priviledges */
+ /* default: drop all privileges */
setgid (rgid);
setuid (ruid);
}
@@ -391,9 +391,9 @@ static void check_suid (struct BB_applet *applet)
if (applet->need_suid == _BB_SUID_ALWAYS) {
if (geteuid () != 0)
- bb_error_msg_and_die ("This applet requires root priviledges!");
+ bb_error_msg_and_die ("This applet requires root privileges!");
} else if (applet->need_suid == _BB_SUID_NEVER) {
- setgid (rgid); /* drop all priviledges */
+ setgid (rgid); /* drop all privileges */
setuid (ruid);
}
}