Remove unnecessary chmod()'s. This should likely go in other branches.

Obtained from: aleph1@UNDERGROUND.ORG on Bugtraq
This commit is contained in:
Guido van Rooij 1997-03-15 22:43:58 +00:00
parent 79a5f47589
commit 34eddd5161
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=23917

View file

@ -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);