* Fix buffer overflow. (Obtained from Debian) * Strip leading "../" when creating new files. (Obtained from Debian) Clean-up by yours truly: * Parameter parsing fix. (Obtained from Debian) * Prefer native getopt() and MD5 functions over the included ones. * Make munpack synopsis agree with actual parameters. * Respect CC.
13 lines
338 B
Plaintext
13 lines
338 B
Plaintext
$OpenBSD: patch-unixpk_c,v 1.1 2002/08/09 01:15:19 naddy Exp $
|
|
--- unixpk.c.orig Thu Feb 16 22:39:50 1995
|
|
+++ unixpk.c Mon Aug 5 12:30:30 2002
|
|
@@ -165,7 +165,7 @@ char **argv;
|
|
strcpy(fnamebuf, "/tmp");
|
|
}
|
|
strcat(fnamebuf, "/mpackXXXXXX");
|
|
- mktemp(fnamebuf);
|
|
+ close(mkstemp(fnamebuf));
|
|
outfname = strsave(fnamebuf);
|
|
}
|
|
|