diff options
author | wiz <wiz@pkgsrc.org> | 2004-12-17 22:41:15 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2004-12-17 22:41:15 +0000 |
commit | ab975ec8afcc6ebd59bed275f19087a9be37e93f (patch) | |
tree | d7d0529891dc035286692b5dd968d3556772c321 /archivers/zip/patches | |
parent | 3ebfd57cc49e2b368c69e52f82535c6139128623 (diff) | |
download | pkgsrc-ab975ec8afcc6ebd59bed275f19087a9be37e93f.tar.gz |
Update to 2.3nb3: Add patch from Mandrake against CAN-2004-1010.
Diffstat (limited to 'archivers/zip/patches')
-rw-r--r-- | archivers/zip/patches/patch-ab | 29 |
1 files changed, 26 insertions, 3 deletions
diff --git a/archivers/zip/patches/patch-ab b/archivers/zip/patches/patch-ab index 93247052c21..2adc8e0e178 100644 --- a/archivers/zip/patches/patch-ab +++ b/archivers/zip/patches/patch-ab @@ -1,8 +1,31 @@ -$NetBSD: patch-ab,v 1.1 2002/04/18 16:42:31 yyamano Exp $ +$NetBSD: patch-ab,v 1.2 2004/12/17 22:41:15 wiz Exp $ ---- unix/unix.c.orig Sat Mar 2 20:12:55 2002 +--- unix/unix.c.orig 1999-11-07 15:08:21.000000000 +0100 +++ unix/unix.c -@@ -698,7 +698,11 @@ +@@ -319,8 +319,8 @@ iztimes *t; /* return value: + a file size of -1 */ + { + struct stat s; /* results of stat() */ +- char name[FNMAX]; +- int len = strlen(f); ++ char *name; ++ size_t len = strlen(f); + + if (f == label) { + if (a != NULL) +@@ -331,6 +331,11 @@ iztimes *t; /* return value: + t->atime = t->mtime = t->ctime = label_utim; + return label_time; + } ++ ++ name = malloc(len+1); ++ if (!name) ++ return 0; ++ + strcpy(name, f); + if (name[len - 1] == '/') + name[len - 1] = '\0'; +@@ -698,7 +703,11 @@ void version_local() #ifdef __QNXNTO__ " (QNX Neutrino)", #else |