version 1.8, 1997/04/03 07:07:36 |
version 1.9, 1998/11/25 00:30:26 |
|
|
#include "INTERN.h" |
#include "INTERN.h" |
#include "pch.h" |
#include "pch.h" |
|
|
|
extern bool check_only; |
/* Patch (diff listing) abstract type. */ |
/* Patch (diff listing) abstract type. */ |
|
|
static long p_filesize; /* size of the patch file */ |
static long p_filesize; /* size of the patch file */ |
|
|
Fflush(pipefp); |
Fflush(pipefp); |
Pclose(pipefp); |
Pclose(pipefp); |
ignore_signals(); |
ignore_signals(); |
if (move_file(TMPOUTNAME, outname) < 0) { |
if (!check_only) { |
toutkeep = TRUE; |
if (move_file(TMPOUTNAME, outname) < 0) { |
chmod(TMPOUTNAME, filemode); |
toutkeep = TRUE; |
|
chmod(TMPOUTNAME, filemode); |
|
} |
|
else |
|
chmod(outname, filemode); |
} |
} |
else |
|
chmod(outname, filemode); |
|
set_signals(1); |
set_signals(1); |
} |
} |