From 408b75a0b4fd16b833c01f6030d799c0148eacf4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bert=20M=C3=BCnnich?= Date: Mon, 11 Feb 2013 21:39:41 +0100 Subject: Ignore dotfiles for -r --- util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util.c') 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; -- cgit v1.2.3