cvs commit: src/usr.sbin/cron/cron do_command.c popen.c
Ceri Davies
ceri at submonkey.net
Sun Jun 11 20:32:19 UTC 2006
On Sun, Jun 11, 2006 at 08:17:18PM +0000, Maxim Konovalov wrote:
> maxim 2006-06-11 20:17:18 UTC
>
> FreeBSD src repository
>
> Modified files:
> usr.sbin/cron/cron do_command.c popen.c
> Log:
> o Spell "privledges" correctly. Re-style comment.
Umm, it's "privileges".
Ceri
> | --- src/usr.sbin/cron/cron/do_command.c 2006/06/01 15:03:06 1.24
> | +++ src/usr.sbin/cron/cron/do_command.c 2006/06/11 20:17:18 1.25
> | @@ -17,7 +17,7 @@
> |
> | #if !defined(lint) && !defined(LINT)
> | static const char rcsid[] =
> | - "$FreeBSD: /usr/local/www/cvsroot/FreeBSD/src/usr.sbin/cron/cron/do_command.c,v 1.24 2006/06/01 15:03:06 maxim Exp $";
> | + "$FreeBSD: /usr/local/www/cvsroot/FreeBSD/src/usr.sbin/cron/cron/do_command.c,v 1.25 2006/06/11 20:17:18 maxim Exp $";
> | #endif
> |
> |
> | @@ -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(),
> http://cvsweb.FreeBSD.org/src/usr.sbin/cron/cron/popen.c.diff?r1=1.13&r2=1.14
> | ===================================================================
> | RCS file: /usr/local/www/cvsroot/FreeBSD/src/usr.sbin/cron/cron/popen.c,v
> | retrieving revision 1.13
> | retrieving revision 1.14
> | diff -u -p -r1.13 -r1.14
> | --- src/usr.sbin/cron/cron/popen.c 2006/06/01 15:03:06 1.13
> | +++ src/usr.sbin/cron/cron/popen.c 2006/06/11 20:17:18 1.14
> | @@ -28,7 +28,7 @@
> | static char sccsid[] = "@(#)popen.c 5.7 (Berkeley) 2/14/89";
> | #endif
> | static const char rcsid[] =
> | - "$FreeBSD: /usr/local/www/cvsroot/FreeBSD/src/usr.sbin/cron/cron/popen.c,v 1.13 2006/06/01 15:03:06 maxim Exp $";
> | + "$FreeBSD: /usr/local/www/cvsroot/FreeBSD/src/usr.sbin/cron/cron/popen.c,v 1.14 2006/06/11 20:17:18 maxim Exp $";
> | #endif /* not lint */
> |
> | #include "cron.h"
> | @@ -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);
--
That must be wonderful! I don't understand it at all.
-- Moliere
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/cvs-src/attachments/20060611/b6cf5baa/attachment.pgp
More information about the cvs-src
mailing list