summaryrefslogtreecommitdiffstats
path: root/gnu
diff options
context:
space:
mode:
authorguido <guido@FreeBSD.org>1997-03-15 22:43:58 +0000
committerguido <guido@FreeBSD.org>1997-03-15 22:43:58 +0000
commit808b31cbd8e764e07876198a410a57d83a33027f (patch)
treeb4fd6b647d1f722cbb1430356235a87d36cd03ba /gnu
parent794901ee2742f8499a990db1b5e25e3a98b482e9 (diff)
downloadFreeBSD-src-808b31cbd8e764e07876198a410a57d83a33027f.zip
FreeBSD-src-808b31cbd8e764e07876198a410a57d83a33027f.tar.gz
Remove unnecessary chmod()'s. This should likely go in other branches.
Obtained from: aleph1@UNDERGROUND.ORG on Bugtraq
Diffstat (limited to 'gnu')
-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 9dbe6b0..87ab36a 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$";
+static char rcsid[] = "$Id: gzip.c,v 1.6 1997/02/22 15:45:57 peter 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);
OpenPOWER on IntegriCloud