diff options
Diffstat (limited to 'app-admin/cronolog/files/1.6.2-patches/cronolog-strftime-patch.txt')
-rw-r--r-- | app-admin/cronolog/files/1.6.2-patches/cronolog-strftime-patch.txt | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/app-admin/cronolog/files/1.6.2-patches/cronolog-strftime-patch.txt b/app-admin/cronolog/files/1.6.2-patches/cronolog-strftime-patch.txt new file mode 100644 index 000000000000..ae0199f140d4 --- /dev/null +++ b/app-admin/cronolog/files/1.6.2-patches/cronolog-strftime-patch.txt @@ -0,0 +1,26 @@ +--- cronolog-1.6.1/src/cronoutils.c Mon Dec 20 00:34:44 1999 ++++ cronolog-1.6.1.new/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 */ |