diff options
-rw-r--r-- | ChangeLog.txt | 4 | ||||
-rw-r--r-- | Makefile.in | 2 | ||||
-rw-r--r-- | pseudo.c | 2 |
3 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog.txt b/ChangeLog.txt index bda0903..08dbd4d 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -1,3 +1,7 @@ +2015-05-04: + * (seebs) don't give spurious trailing slash diagnostics + * 1.6.5 + 2015-01-22: * (seebs) work when --prefix doesn't exist yet * 1.6.4 diff --git a/Makefile.in b/Makefile.in index 20571b6..f4e9cac 100644 --- a/Makefile.in +++ b/Makefile.in @@ -31,7 +31,7 @@ BITS=@BITS@ ARCH_FLAGS=@ARCH_FLAGS@ MARK64=@MARK64@ RPATH=@RPATH@ -VERSION=1.6.4 +VERSION=1.6.5 LIB=@LIB@ BIN=bin @@ -682,7 +682,7 @@ pseudo_op(pseudo_msg_t *msg, const char *program, const char *tag, char **respon pdb_unlink_file_dev(&by_path); found_path = 0; } - if (!!S_ISDIR(by_path.mode) != trailing_slash) { + if (trailing_slash && !S_ISDIR(by_path.mode)) { pseudo_diag("dir quasi-mismatch: '%s' [%llu] db mode 0%o, incoming path had trailing slash. Not unlinking.\n", msg->path, (unsigned long long) by_path.ino, (int) by_path.mode); |