diff options
-rw-r--r-- | redo.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/redo.c b/redo.c index 2a82dc9..44948b1 100644 --- a/redo.c +++ b/redo.c @@ -902,13 +902,8 @@ record_deps(int targetc, char *targetv[]) fchdir(dir_fd); - for (targeti = 0; targeti < targetc; targeti++) { - fd = open(targetv[targeti], O_RDONLY); - if (fd < 0) - continue; + for (targeti = 0; targeti < targetc; targeti++) write_dep(dep_fd, targetv[targeti]); - close(fd); - } } int |