aboutsummaryrefslogtreecommitdiff
path: root/coreutils/diff.c
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils/diff.c')
-rw-r--r--coreutils/diff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/diff.c b/coreutils/diff.c
index 887679a0a..a49d5195a 100644
--- a/coreutils/diff.c
+++ b/coreutils/diff.c
@@ -1079,7 +1079,7 @@ static char **get_dir(char *path)
1079 1079
1080 dp = warn_opendir(path); 1080 dp = warn_opendir(path);
1081 while ((ep = readdir(dp))) { 1081 while ((ep = readdir(dp))) {
1082 if ((!strcmp(ep->d_name, "..")) || (!strcmp(ep->d_name, "."))) 1082 if (!strcmp(ep->d_name, "..") || LONE_CHAR(ep->d_name, '.'))
1083 continue; 1083 continue;
1084 add_to_dirlist(ep->d_name, NULL, NULL, 0); 1084 add_to_dirlist(ep->d_name, NULL, NULL, 0);
1085 } 1085 }