aboutsummaryrefslogtreecommitdiff
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
parent1bb31928d5ae941f726de13f4d2255f432d85c2a (diff)
downloadbusybox-w32-e0fe93759339a9e043cd0489f5bfabd59b5fcb78.tar.gz
busybox-w32-e0fe93759339a9e043cd0489f5bfabd59b5fcb78.tar.bz2
busybox-w32-e0fe93759339a9e043cd0489f5bfabd59b5fcb78.zip
- correct typo
-rw-r--r--applets/applets.c6
-rw-r--r--docs/contributing.txt2
2 files changed, 4 insertions, 4 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)
372 } else 372 } else
373 setuid (ruid); /* no suid -> drop */ 373 setuid (ruid); /* no suid -> drop */
374 } else { 374 } else {
375 /* default: drop all priviledges */ 375 /* default: drop all privileges */
376 setgid (rgid); 376 setgid (rgid);
377 setuid (ruid); 377 setuid (ruid);
378 } 378 }
@@ -391,9 +391,9 @@ static void check_suid (struct BB_applet *applet)
391 391
392 if (applet->need_suid == _BB_SUID_ALWAYS) { 392 if (applet->need_suid == _BB_SUID_ALWAYS) {
393 if (geteuid () != 0) 393 if (geteuid () != 0)
394 bb_error_msg_and_die ("This applet requires root priviledges!"); 394 bb_error_msg_and_die ("This applet requires root privileges!");
395 } else if (applet->need_suid == _BB_SUID_NEVER) { 395 } else if (applet->need_suid == _BB_SUID_NEVER) {
396 setgid (rgid); /* drop all priviledges */ 396 setgid (rgid); /* drop all privileges */
397 setuid (ruid); 397 setuid (ruid);
398 } 398 }
399} 399}
diff --git a/docs/contributing.txt b/docs/contributing.txt
index e80fc135c..aad43035c 100644
--- a/docs/contributing.txt
+++ b/docs/contributing.txt
@@ -400,7 +400,7 @@ coder, you may be invited to become a committer, thus enabling you to commit
400changes directly to CVS. This is nice because you don't have to wait for 400changes directly to CVS. This is nice because you don't have to wait for
401someone else to commit your change for you, you can just do it yourself. 401someone else to commit your change for you, you can just do it yourself.
402 402
403But note that this is a priviledge that comes with some responsibilities. You 403But note that this is a privilege that comes with some responsibilities. You
404should test your changes before you commit them. You should also talk to an 404should test your changes before you commit them. You should also talk to an
405applet maintainer before you make any kind of sweeping changes to somebody 405applet maintainer before you make any kind of sweeping changes to somebody
406else's code. Big changes should still go to the mailing list first. Remember, 406else's code. Big changes should still go to the mailing list first. Remember,