Commit b8595e60 authored by Wayne Davison's avatar Wayne Davison

In delete_in_dir(), skip a directory that isn't really a directory on

the local disk (can easily happen if --dry-run was specified).
parent d37bc73a
......@@ -261,7 +261,7 @@ static void delete_in_dir(struct file_list *flist, char *fbuf,
dlen = strlen(fbuf);
filt_array[cur_depth] = push_local_filters(fbuf, dlen);
if (link_stat(fbuf, &st, keep_dirlinks) < 0)
if (link_stat(fbuf, &st, keep_dirlinks) < 0 || !S_ISDIR(st.st_mode))
return;
if (one_file_system) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment