summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authormaxim <maxim@FreeBSD.org>2006-06-11 20:17:18 +0000
committermaxim <maxim@FreeBSD.org>2006-06-11 20:17:18 +0000
commit5ec37c2386324112b5437ea5f6241d0ca49dca39 (patch)
tree6324cd72847220678061adf924d8578ae419c027 /usr.sbin
parent9a2ece0a0b78d4baa5d73d458ba8ae8c5388bf27 (diff)
downloadFreeBSD-src-5ec37c2386324112b5437ea5f6241d0ca49dca39.zip
FreeBSD-src-5ec37c2386324112b5437ea5f6241d0ca49dca39.tar.gz
o Spell "privledges" correctly. Re-style comment.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/cron/cron/do_command.c2
-rw-r--r--usr.sbin/cron/cron/popen.c6
2 files changed, 5 insertions, 3 deletions
diff --git a/usr.sbin/cron/cron/do_command.c b/usr.sbin/cron/cron/do_command.c
index 1e6fe05..fd6028a 100644
--- a/usr.sbin/cron/cron/do_command.c
+++ b/usr.sbin/cron/cron/do_command.c
@@ -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(),
diff --git a/usr.sbin/cron/cron/popen.c b/usr.sbin/cron/cron/popen.c
index 06e8c1c..d9c52da 100644
--- a/usr.sbin/cron/cron/popen.c
+++ b/usr.sbin/cron/cron/popen.c
@@ -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);
OpenPOWER on IntegriCloud