Ignore dotfiles for -r

This commit is contained in:
Bert Münnich 2013-02-11 21:39:41 +01:00
parent c6bfac1566
commit 408b75a0b4
2 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
VERSION = git-20130209 VERSION = git-20130211
PREFIX = /usr/local PREFIX = /usr/local
MANPREFIX = $(PREFIX)/share/man MANPREFIX = $(PREFIX)/share/man

2
util.c
View File

@ -274,7 +274,7 @@ char* r_readdir(r_dir_t *rdir)
while (true) { while (true) {
if (rdir->dir != NULL && (dentry = readdir(rdir->dir)) != NULL) { if (rdir->dir != NULL && (dentry = readdir(rdir->dir)) != NULL) {
if (STREQ(dentry->d_name, ".") || STREQ(dentry->d_name, "..")) if (dentry->d_name[0] == '.')
continue; continue;
len = strlen(rdir->name) + strlen(dentry->d_name) + 2; len = strlen(rdir->name) + strlen(dentry->d_name) + 2;