Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 112780 Details for
Bug 118905
default vixiecron crontab is wrong
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
/usr/portage/sys-process/vixie-cron/files/vixie-cron-4.1-chksyscrontab.patch
vixie-cron-4.1-chksyscrontab.patch (text/plain), 785 bytes, created by
Xavier Neys (RETIRED)
on 2007-03-10 10:53:53 UTC
(
hide
)
Description:
/usr/portage/sys-process/vixie-cron/files/vixie-cron-4.1-chksyscrontab.patch
Filename:
MIME Type:
Creator:
Xavier Neys (RETIRED)
Created:
2007-03-10 10:53:53 UTC
Size:
785 bytes
patch
obsolete
>--- crontab.c.orig 2007-03-10 11:30:45.000000000 +0100 >+++ crontab.c 2007-03-10 11:43:38.000000000 +0100 >@@ -121,6 +121,7 @@ > static void > parse_args(int argc, char *argv[]) { > int argch; >+ char resolved_path[PATH_MAX]; > > if (!(pw = getpwuid(getuid()))) { > fprintf(stderr, "%s: your UID isn't in the passwd file.\n", >@@ -202,7 +203,11 @@ > */ > if (!strcmp(Filename, "-")) > NewCrontab = stdin; >- else { >+ else if (realpath(Filename, resolved_path) != NULL && >+ !strcmp(resolved_path, SYSCRONTAB)) { >+ fprintf(stderr, SYSCRONTAB " must be edited manually\n"); >+ exit(ERROR_EXIT); >+ } else { > /* relinquish the setuid status of the binary during > * the open, lest nonroot users read files they should > * not be able to read. we can't use access() here
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 118905
: 112780