diff options
Diffstat (limited to 'patches/logrotate-3.7.1/script-argument.patch')
-rw-r--r-- | patches/logrotate-3.7.1/script-argument.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/patches/logrotate-3.7.1/script-argument.patch b/patches/logrotate-3.7.1/script-argument.patch new file mode 100644 index 000000000..86ac656b0 --- /dev/null +++ b/patches/logrotate-3.7.1/script-argument.patch @@ -0,0 +1,18 @@ +Closes: #330783 + +Allow the use of $1 in scripts. + + +Index: logrotate-3.7.1/logrotate.c +=================================================================== +--- logrotate-3.7.1.orig/logrotate.c 2006-04-08 21:47:41.000000000 +0100 ++++ logrotate-3.7.1/logrotate.c 2006-04-08 22:01:23.722498089 +0100 +@@ -101,7 +101,7 @@ + } + + if (!fork()) { +- execl("/bin/sh", "sh", "-c", script, NULL); ++ execl("/bin/sh", "sh", "-c", script, "sh", logfn, NULL); + exit(1); + } + |