- correct typo
This commit is contained in:
parent
1bb31928d5
commit
e0fe937593
@ -372,7 +372,7 @@ static void check_suid (struct BB_applet *applet)
|
|||||||
} else
|
} else
|
||||||
setuid (ruid); /* no suid -> drop */
|
setuid (ruid); /* no suid -> drop */
|
||||||
} else {
|
} else {
|
||||||
/* default: drop all priviledges */
|
/* default: drop all privileges */
|
||||||
setgid (rgid);
|
setgid (rgid);
|
||||||
setuid (ruid);
|
setuid (ruid);
|
||||||
}
|
}
|
||||||
@ -391,9 +391,9 @@ static void check_suid (struct BB_applet *applet)
|
|||||||
|
|
||||||
if (applet->need_suid == _BB_SUID_ALWAYS) {
|
if (applet->need_suid == _BB_SUID_ALWAYS) {
|
||||||
if (geteuid () != 0)
|
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) {
|
} else if (applet->need_suid == _BB_SUID_NEVER) {
|
||||||
setgid (rgid); /* drop all priviledges */
|
setgid (rgid); /* drop all privileges */
|
||||||
setuid (ruid);
|
setuid (ruid);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -400,7 +400,7 @@ coder, you may be invited to become a committer, thus enabling you to commit
|
|||||||
changes directly to CVS. This is nice because you don't have to wait for
|
changes directly to CVS. This is nice because you don't have to wait for
|
||||||
someone else to commit your change for you, you can just do it yourself.
|
someone else to commit your change for you, you can just do it yourself.
|
||||||
|
|
||||||
But note that this is a priviledge that comes with some responsibilities. You
|
But note that this is a privilege that comes with some responsibilities. You
|
||||||
should test your changes before you commit them. You should also talk to an
|
should test your changes before you commit them. You should also talk to an
|
||||||
applet maintainer before you make any kind of sweeping changes to somebody
|
applet maintainer before you make any kind of sweeping changes to somebody
|
||||||
else's code. Big changes should still go to the mailing list first. Remember,
|
else's code. Big changes should still go to the mailing list first. Remember,
|
||||||
|
Loading…
Reference in New Issue
Block a user