aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog.txt4
-rw-r--r--Makefile.in2
-rw-r--r--pseudo.c2
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
diff --git a/pseudo.c b/pseudo.c
index 5eae180..c089869 100644
--- a/pseudo.c
+++ b/pseudo.c
@@ -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);