From: Francois Fleuret Date: Mon, 22 Mar 2010 07:57:29 +0000 (+0100) Subject: Do not ignore ./something when the -d option is on. X-Git-Url: https://www.fleuret.org/cgi-bin/gitweb/gitweb.cgi?p=dus.git;a=commitdiff_plain;h=0da5d47ce02c48aa759ca6a43762e240bfcc72ff Do not ignore ./something when the -d option is on. --- diff --git a/dus.c b/dus.c index 08cd183..d4ca191 100644 --- a/dus.c +++ b/dus.c @@ -85,7 +85,7 @@ int ignore_entry(const char *name) { return strcmp(name, ".") == 0 || strcmp(name, "..") == 0 || - (ignore_dotfiles && name[0] == '.'); + (ignore_dotfiles && name[0] == '.' && name[1] != '/'); } size_sum_t entry_size(const char *name) {