Ignore dotfiles for -r
This commit is contained in:
parent
c6bfac1566
commit
408b75a0b4
2
Makefile
2
Makefile
@ -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
2
util.c
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user