From bcc7e96ef05c7ab40de1ada548c98355b6e77a47 Mon Sep 17 00:00:00 2001 From: Mikhail Gorbunov Date: Fri, 3 Feb 2017 10:20:35 +0300 Subject: [PATCH] omit hidden directory entirely --- src/tup/path.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/tup/path.c b/src/tup/path.c index 03ab68888..5fb6da1ac 100644 --- a/src/tup/path.c +++ b/src/tup/path.c @@ -43,6 +43,9 @@ static int watch_path_internal(tupid_t dt, const char *file, struct flist f = FLIST_INITIALIZER; struct stat buf; + if(file[0] == '.' && file[1]) + return 0; + if(lstat(file, &buf) != 0) { if(errno == ENOENT) { /* The file may have been created and then removed before