From 5b179242d2a6bc9956b0b270d1f295a95a70f671 Mon Sep 17 00:00:00 2001 From: deraadt Date: Tue, 25 Mar 1997 21:09:47 +0000 Subject: [PATCH] do not chmod file before unlink; firebug@atlantic.net --- gnu/usr.bin/gzip/gzip.c | 4 +--- 1 file changed, 1 insertion(+), 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 @@ -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); -- 2.20.1