version 1.8, 1996/12/24 20:00:04 |
version 1.9, 1996/12/24 21:22:10 |
|
|
return (cp); |
return (cp); |
} |
} |
if (ftemp == NULL) { |
if (ftemp == NULL) { |
mode_t um; |
|
|
|
(void) strcpy(temp, _PATH_TMPFILE); |
(void) strcpy(temp, _PATH_TMPFILE); |
um = umask(0600); |
|
fd = mkstemp(temp); |
fd = mkstemp(temp); |
if (fd < 0) { |
if (fd < 0) { |
printf ("temporary file %s already exists\n", temp); |
printf ("temporary file %s already exists\n", temp); |
return NULL; |
return NULL; |
} |
} |
close (fd); |
close (fd); |
(void) umask(um); |
|
oldverbose = verbose, verbose = 0; |
oldverbose = verbose, verbose = 0; |
oldhash = hash, hash = 0; |
oldhash = hash, hash = 0; |
if (doswitch) { |
if (doswitch) { |