summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1997-03-25 21:09:47 +0000
committerderaadt <deraadt@openbsd.org>1997-03-25 21:09:47 +0000
commit5b179242d2a6bc9956b0b270d1f295a95a70f671 (patch)
tree7fbcd7fd945c67b2fbc89020529fff23dab93071
parentGet rid of userland includes (diff)
downloadwireguard-openbsd-5b179242d2a6bc9956b0b270d1f295a95a70f671.tar.xz
wireguard-openbsd-5b179242d2a6bc9956b0b270d1f295a95a70f671.zip
do not chmod file before unlink; firebug@atlantic.net
-rw-r--r--gnu/usr.bin/gzip/gzip.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gnu/usr.bin/gzip/gzip.c b/gnu/usr.bin/gzip/gzip.c
index 41123c47bed..fc2e4a77ae4 100644
--- a/gnu/usr.bin/gzip/gzip.c
+++ b/gnu/usr.bin/gzip/gzip.c
@@ -45,7 +45,7 @@ static char *license_msg[] = {
*/
#ifdef RCSID
-static char rcsid[] = "$Id: gzip.c,v 1.1.1.1 1995/10/18 08:40:53 deraadt Exp $";
+static char rcsid[] = "$Id: gzip.c,v 1.2 1997/03/25 21:09:47 deraadt Exp $";
#endif
#include <ctype.h>
@@ -1573,7 +1573,6 @@ local int check_ofname()
return ERROR;
}
}
- (void) chmod(ofname, 0777);
if (unlink(ofname)) {
fprintf(stderr, "%s: ", progname);
perror(ofname);
@@ -1633,7 +1632,6 @@ local void copy_stat(ifstat)
#endif
remove_ofname = 0;
/* It's now safe to remove the input file: */
- (void) chmod(ifname, 0777);
if (unlink(ifname)) {
WARN((stderr, "%s: ", progname));
if (!quiet) perror(ifname);