]> git.pld-linux.org Git - packages/logrotate.git/commitdiff
- do NOT execute anything directly from /tmp as it can be mounted noexec,
authorJan Rękorajski <baggins@pld-linux.org>
Tue, 11 May 2004 11:42:23 +0000 (11:42 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  use '/bin/sh -c command'

Changed files:
    logrotate-noexec-tmp.patch -> 1.1

logrotate-noexec-tmp.patch [new file with mode: 0644]

diff --git a/logrotate-noexec-tmp.patch b/logrotate-noexec-tmp.patch
new file mode 100644 (file)
index 0000000..fe566c4
--- /dev/null
@@ -0,0 +1,11 @@
+--- logrotate-3.7/logrotate.c~ 2004-05-11 13:18:32.019683640 +0200
++++ logrotate-3.7/logrotate.c  2004-05-11 13:28:56.154800680 +0200
+@@ -125,7 +125,7 @@
+     close(fd);
+     if (!fork()) {
+-      execlp(filespec, logfn, NULL);
++      execlp("/bin/sh", "-c", filespec, logfn, NULL);
+       exit(1);
+     }
This page took 0.08298 seconds and 4 git commands to generate.