Fix a nasty temporary file race condition.

This commit is contained in:
David Given 2022-07-17 13:00:18 +02:00
parent 5c2f190c29
commit 8e4a6ca47d
2 changed files with 0 additions and 2 deletions

View file

@ -69,7 +69,6 @@ int setfiles(trf *phase) {
gr_cat(&pathname, "/Ack-XXXXXX");
int fd = mkstemp(pathname.gr_string);
close(fd);
remove(pathname.gr_string);
out.p_keep=NO ;
} else {
if ( !p_basename ) {

View file

@ -141,7 +141,6 @@ static void intrf(void) {
new->t_stdin= YES ;
} else
if ( strcmp(ty_name,STD_OUT)==0 ) {
fprintf(stderr, "setting stdout for %s\n", new->t_name);
if ( new->t_stdout ) twice=YES ;
new->t_stdout= YES ;
} else