diff options
Diffstat (limited to 'sys-process/vixie-cron/files/vixie-cron-4.1-crontabrace.patch')
-rw-r--r-- | sys-process/vixie-cron/files/vixie-cron-4.1-crontabrace.patch | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/sys-process/vixie-cron/files/vixie-cron-4.1-crontabrace.patch b/sys-process/vixie-cron/files/vixie-cron-4.1-crontabrace.patch deleted file mode 100644 index 5109554..0000000 --- a/sys-process/vixie-cron/files/vixie-cron-4.1-crontabrace.patch +++ /dev/null @@ -1,29 +0,0 @@ ---- vixie-cron-4.1/crontab.c -+++ vixie-cron-4.1/crontab.c -@@ -314,8 +314,6 @@ - perror("fstat"); - goto fatal; - } -- utimebuf.actime = statbuf.st_atime; -- utimebuf.modtime = statbuf.st_mtime; - - /* Turn off signals. */ - (void)signal(SIGHUP, SIG_IGN); -@@ -374,6 +372,17 @@ - perror(Filename); - exit(ERROR_EXIT); - } -+ if (swap_uids() < OK) { -+ perror("swapping uids"); -+ exit(ERROR_EXIT); -+ } -+ utimebuf.actime = statbuf.st_atime; -+ utimebuf.modtime = statbuf.st_mtime; -+ utime(Filename, &utimebuf); -+ if (swap_uids_back() < OK) { -+ perror("swapping uids back"); -+ exit(ERROR_EXIT); -+ } - utime(Filename, &utimebuf); - again: - rewind(NewCrontab); |