o Spell "privledges" correctly. Re-style comment.

This commit is contained in:
Maxim Konovalov 2006-06-11 20:17:18 +00:00
parent a81d6f2126
commit b608e56d62
2 changed files with 5 additions and 3 deletions

View File

@ -243,7 +243,7 @@ child_process(e, u)
(void) endpwent();
# endif
/* set our directory, uid and gid. Set gid first,
* since once we set uid, we've lost root privledges.
* since once we set uid, we've lost root priviledges.
*/
if (setgid(e->gid) != 0) {
log_it(usernm, getpid(),

View File

@ -172,8 +172,10 @@ cron_popen(program, type, e)
/* fall back to the old method */
(void) endpwent();
# endif
/* set our directory, uid and gid. Set gid first,
* since once we set uid, we've lost root privledges.
/*
* Set our directory, uid and gid. Set gid
* first since once we set uid, we've lost
* root priviledges.
*/
if (setgid(e->gid) != 0)
_exit(ERROR_EXIT);