Module Name: src
Committed By: riz
Date: Wed Mar 7 23:41:17 UTC 2012
Modified Files:
src/external/bsd/cron/dist [netbsd-6]: crontab.c
Log Message:
Pull up following revision(s) (requested by dholland in ticket #88):
external/bsd/cron/dist/crontab.c: revision 1.4
external/bsd/cron/dist/crontab.c: revision 1.5
PR/46127: Holger Weiss: "crontab <file>" fails for unprivileged users
XXX: Pullup to 6
Fix multiple problems in previous commit:
1.) Correct set-uid check to allow "root" to run "crontab -l" again.
2.) Don't the the last error reported in "errno" in case "crontab" is not
installed set-uid "root". As no system-call failed "errno" is set
to zero.
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.3.8.1 src/external/bsd/cron/dist/crontab.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.