diff options
Diffstat (limited to 'coreutils/diff.c')
-rw-r--r-- | coreutils/diff.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/coreutils/diff.c b/coreutils/diff.c index 2c89a66..12c61ca 100644 --- a/coreutils/diff.c +++ b/coreutils/diff.c @@ -1114,8 +1114,8 @@ static char **get_dir(char *path) { else { DIR *dp; struct dirent *ep; - if ((dp = opendir(path)) == NULL) - bb_error_msg("Error reading directory"); + + dp = bb_opendir(path); while ((ep = readdir(dp))) { if ((!strcmp(ep->d_name, "..")) || (!strcmp(ep->d_name, "."))) continue; |