summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-admin/cronolog/files/1.6.2-patches/cronolog-strftime.patch')
-rw-r--r--app-admin/cronolog/files/1.6.2-patches/cronolog-strftime.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/app-admin/cronolog/files/1.6.2-patches/cronolog-strftime.patch b/app-admin/cronolog/files/1.6.2-patches/cronolog-strftime.patch
new file mode 100644
index 000000000000..12d561776f8c
--- /dev/null
+++ b/app-admin/cronolog/files/1.6.2-patches/cronolog-strftime.patch
@@ -0,0 +1,26 @@
+--- a/src/cronoutils.c Mon Dec 20 00:34:44 1999
++++ b/src/cronoutils.c Mon Feb 11 03:19:32 2002
+@@ -204,9 +204,21 @@
+ {
+ if (ch == '%')
+ {
+- ch = *spec++;
+- if (!ch) break;
++ do {
++ ch = *spec++;
++ if (!ch) break;
+
++ switch(ch) {
++ case '_':
++ case '-':
++ case '0':
++ continue;
++ }
++ break;
++ } while(1);
++
++ if(!ch) break;
++
+ switch (ch)
+ {
+ case 'y': /* two digit year */