summaryrefslogtreecommitdiffstats
path: root/abs/extra/mc/mc-4.6.1-invalid-mtime.patch
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-11-26 14:58:55 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-11-26 14:58:55 (GMT)
commit33d9f1c5366b091e6dc1ac66b3e8da6c022a050f (patch)
tree5aa7b08168c7338c2c03832954309a1834a52e6f /abs/extra/mc/mc-4.6.1-invalid-mtime.patch
parent35848eb77301fe20bc9808caade9d2f3a0e966ba (diff)
downloadlinhes_pkgbuild-33d9f1c5366b091e6dc1ac66b3e8da6c022a050f.zip
linhes_pkgbuild-33d9f1c5366b091e6dc1ac66b3e8da6c022a050f.tar.gz
linhes_pkgbuild-33d9f1c5366b091e6dc1ac66b3e8da6c022a050f.tar.bz2
mc: 4.8.6
Diffstat (limited to 'abs/extra/mc/mc-4.6.1-invalid-mtime.patch')
-rw-r--r--abs/extra/mc/mc-4.6.1-invalid-mtime.patch30
1 files changed, 0 insertions, 30 deletions
diff --git a/abs/extra/mc/mc-4.6.1-invalid-mtime.patch b/abs/extra/mc/mc-4.6.1-invalid-mtime.patch
deleted file mode 100644
index 07b1f6d..0000000
--- a/abs/extra/mc/mc-4.6.1-invalid-mtime.patch
+++ /dev/null
@@ -1,30 +0,0 @@
-
- Invalid timestamps on files caused mc to segfault by passing a null
- pointer to strftime. Avoid trying to print the time in this case.
-
- Reported by Maxim Britov <maxim@office.modum.by>
- at http://bugs.gentoo.org/184296
-
---- mc-4.6.1/src/util.c
-+++ mc-4.6.1/src/util.c
-@@ -717,6 +717,7 @@
- static size_t i18n_timelength = 0;
- static const char *fmtyear, *fmttime;
- const char *fmt;
-+ struct tm *whentm;
-
- if (i18n_timelength == 0){
- i18n_timelength = i18n_checktimelength() + 1;
-@@ -740,7 +741,11 @@
- else
- fmt = fmttime;
-
-- strftime (timebuf, i18n_timelength, fmt, localtime(&when));
-+ whentm = localtime(&when);
-+ if (whentm == NULL)
-+ return "(invalid)";
-+
-+ strftime (timebuf, i18n_timelength, fmt, whentm);
- return timebuf;
- }
-