mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-09 10:00:39 +00:00
Remove unnecessary chmod()'s. This should likely go in other branches.
Obtained from: aleph1@UNDERGROUND.ORG on Bugtraq
This commit is contained in:
parent
79a5f47589
commit
34eddd5161
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=23917
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue