summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Reffett <creffett@gentoo.org>2013-10-19 22:40:54 +0000
committerChris Reffett <creffett@gentoo.org>2013-10-19 22:40:54 +0000
commitb1b6b62c30285c798cbf7b99bcafb1027962b06f (patch)
tree3bc90a0dfb207554215f96e7385d2d917a39987b /sys-process/vixie-cron/files
parentVersion bump, as requested by "Shark" in bug #488618. New Huffman decoding sc... (diff)
downloadhistorical-b1b6b62c30285c798cbf7b99bcafb1027962b06f.tar.gz
historical-b1b6b62c30285c798cbf7b99bcafb1027962b06f.tar.bz2
historical-b1b6b62c30285c798cbf7b99bcafb1027962b06f.zip
Security bump. Add backported patch wrt bug 308055.
Package-Manager: portage-2.2.7/cvs/Linux x86_64 Manifest-Sign-Key: 0x42618354
Diffstat (limited to 'sys-process/vixie-cron/files')
-rw-r--r--sys-process/vixie-cron/files/vixie-cron-4.1-crontabrace.patch29
1 files changed, 29 insertions, 0 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
new file mode 100644
index 000000000000..5109554e1dd1
--- /dev/null
+++ b/sys-process/vixie-cron/files/vixie-cron-4.1-crontabrace.patch
@@ -0,0 +1,29 @@
+--- 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);