From 5ec37c2386324112b5437ea5f6241d0ca49dca39 Mon Sep 17 00:00:00 2001 From: maxim Date: Sun, 11 Jun 2006 20:17:18 +0000 Subject: o Spell "privledges" correctly. Re-style comment. --- usr.sbin/cron/cron/do_command.c | 2 +- usr.sbin/cron/cron/popen.c | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'usr.sbin') 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); -- cgit v1.1