summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBert Münnich <be.muennich@gmail.com>2013-02-11 21:39:41 +0100
committerBert Münnich <be.muennich@gmail.com>2013-02-11 21:39:41 +0100
commit408b75a0b4fd16b833c01f6030d799c0148eacf4 (patch)
treeaa7f19c64cb12f54c1e56b96201d34eaa0fa7be5
parentc6bfac15664d8d9619ca7793118e719d6e0dcd44 (diff)
downloadnsxiv-408b75a0b4fd16b833c01f6030d799c0148eacf4.tar.zst
Ignore dotfiles for -r
-rw-r--r--Makefile2
-rw-r--r--util.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 1c7a95d..3a64529 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-VERSION = git-20130209
+VERSION = git-20130211
PREFIX = /usr/local
MANPREFIX = $(PREFIX)/share/man
diff --git a/util.c b/util.c
index 7abded2..c611da4 100644
--- a/util.c
+++ b/util.c
@@ -274,7 +274,7 @@ char* r_readdir(r_dir_t *rdir)
while (true) {
if (rdir->dir != NULL && (dentry = readdir(rdir->dir)) != NULL) {
- if (STREQ(dentry->d_name, ".") || STREQ(dentry->d_name, ".."))
+ if (dentry->d_name[0] == '.')
continue;
len = strlen(rdir->name) + strlen(dentry->d_name) + 2;