-/* $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 $ */
/*
#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 */
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) {