diff options
| author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-03-23 16:52:59 +0000 |
|---|---|---|
| committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-03-23 16:52:59 +0000 |
| commit | e0fe93759339a9e043cd0489f5bfabd59b5fcb78 (patch) | |
| tree | 0cb1b93dcb99252943f155504ea24f440fadb7e8 /applets | |
| parent | 1bb31928d5ae941f726de13f4d2255f432d85c2a (diff) | |
| download | busybox-w32-e0fe93759339a9e043cd0489f5bfabd59b5fcb78.tar.gz busybox-w32-e0fe93759339a9e043cd0489f5bfabd59b5fcb78.tar.bz2 busybox-w32-e0fe93759339a9e043cd0489f5bfabd59b5fcb78.zip | |
- correct typo
Diffstat (limited to 'applets')
| -rw-r--r-- | applets/applets.c | 6 |
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) | |||
| 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 | } |
