diff options
author | Christian Kögler <ck3d@gmx.de> | 2020-05-17 14:10:37 +0200 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2020-05-17 15:33:34 +0200 |
commit | 7013b5e384b74bc425f10c88b6f78e3a7a4fd39e (patch) | |
tree | 04ef295b59418acfcd953f604db0982483e51160 | |
parent | b7d9335f082b6fa33ef6238c312dade88d4f3af0 (diff) | |
download | redo-c-7013b5e384b74bc425f10c88b6f78e3a7a4fd39e.tar.gz redo-c-7013b5e384b74bc425f10c88b6f78e3a7a4fd39e.tar.xz redo-c-7013b5e384b74bc425f10c88b6f78e3a7a4fd39e.zip |
added empty target
Closes: #2 [via git-merge-pr]
-rw-r--r-- | redo.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/redo.c b/redo.c index cdd7a82..f482023 100644 --- a/redo.c +++ b/redo.c @@ -862,8 +862,7 @@ redo_ifchange(int targetc, char *targetv[]) dfd = open(job->temp_depfile, O_WRONLY | O_APPEND); - if (stat(job->temp_target, &st) == 0 && - st.st_size > 0) { + if (stat(job->temp_target, &st) == 0) { rename(job->temp_target, target); write_dep(dfd, target); } else { |