diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/remove.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/remove.c b/src/remove.c index 59368ac09..f09184e35 100644 --- a/src/remove.c +++ b/src/remove.c @@ -871,7 +871,11 @@ remove_cwd_entries (char **subdir, struct stat *subdir_sb, break; } - closedir (dirp); + if (CLOSEDIR (dirp) != 0) + { + error (0, errno, _("reading directory %s"), quote (full_filename ("."))); + status = RM_ERROR; + } return status; } |