Krolyxon
Commit 408b75a

Branches

Refs →

nsxiv408b75a

Ignore dotfiles for -r

Author
Bert Münnich
Date
2013-02-11 21:39 +0100
Parent
c6bfac1
Commit
408b75a0b4fd16b833c01f6030d799c0148eacf4

+2 −2

2 files changed

  1. M Makefile +1 −1
  2. M util.c +1 −1
M Makefile View
@@ -1,4 +1,4 @@
1−VERSION = git-20130209
1+VERSION = git-20130211
22
33 PREFIX = /usr/local
44 MANPREFIX = $(PREFIX)/share/man
M util.c View
@@ -274,7 +274,7 @@ char* r_readdir(r_dir_t *rdir)
274274
275275 while (true) {
276276 if (rdir->dir != NULL && (dentry = readdir(rdir->dir)) != NULL) {
277− if (STREQ(dentry->d_name, ".") || STREQ(dentry->d_name, ".."))
277+ if (dentry->d_name[0] == '.')
278278 continue;
279279
280280 len = strlen(rdir->name) + strlen(dentry->d_name) + 2;