--- tar-1.15.91/src/incremen.c 2006-06-08 14:28:16.000000000 +0300 +++ tar-1.15.91-mod/src/incremen.c 2006-09-07 09:06:07.000000000 +0300 @@ -1299,10 +1299,6 @@ try_purge_directory (char const *directo free (p); p = new_name (directory_name, cur); - if (!(entry = dumpdir_locate (current_stat_info.dumpdir, cur)) - || (*entry == 'D' && S_ISDIR (st.st_mode)) - || (*entry == 'Y' && !S_ISDIR (st.st_mode))) - { if (deref_stat (false, p, &st)) { if (errno != ENOENT) /* FIXME: Maybe keep a list of renamed @@ -1321,6 +1317,10 @@ try_purge_directory (char const *directo quotearg_colon (p))); continue; } + if (!(entry = dumpdir_locate (current_stat_info.dumpdir, cur)) + || (*entry == 'D' && !S_ISDIR (st.st_mode)) + || (*entry == 'Y' && S_ISDIR (st.st_mode))) + { if (! interactive_option || confirm ("delete", p)) {