diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-12-24 21:22:11 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-12-24 21:22:11 +0000 |
commit | a309842fe95d85e357d8144e24c0232e6e4ee693 (patch) | |
tree | bf27ecea16e32cae7824ad7df8c2a80854415753 | |
parent | e30d363e723445d427274acb83a88766bdd8179c (diff) |
do not need umask fiddling
-rw-r--r-- | usr.bin/ftp/cmds.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/usr.bin/ftp/cmds.c b/usr.bin/ftp/cmds.c index 46706065ec0..4719ed4e612 100644 --- a/usr.bin/ftp/cmds.c +++ b/usr.bin/ftp/cmds.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmds.c,v 1.8 1996/12/24 20:00:04 deraadt Exp $ */ +/* $OpenBSD: cmds.c,v 1.9 1996/12/24 21:22:10 deraadt Exp $ */ /* $NetBSD: cmds.c,v 1.8 1995/09/08 01:06:05 tls Exp $ */ /* @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)cmds.c 8.6 (Berkeley) 10/9/94"; #else -static char rcsid[] = "$OpenBSD: cmds.c,v 1.8 1996/12/24 20:00:04 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: cmds.c,v 1.9 1996/12/24 21:22:10 deraadt Exp $"; #endif #endif /* not lint */ @@ -808,17 +808,13 @@ remglob(argv,doswitch) return (cp); } if (ftemp == NULL) { - mode_t um; - (void) strcpy(temp, _PATH_TMPFILE); - um = umask(0600); fd = mkstemp(temp); if (fd < 0) { printf ("temporary file %s already exists\n", temp); return NULL; } close (fd); - (void) umask(um); oldverbose = verbose, verbose = 0; oldhash = hash, hash = 0; if (doswitch) { |