(purge_directory): Do not dereference symbolic links. Bug reported by Ralph Corderoy <ralph@inputplus.co.uk> and David Brown <davidb@davidb.org>

This commit is contained in:
Sergey Poznyakoff
2005-09-03 10:27:13 +00:00
parent c40ba72fd3
commit a5375b618c

View File

@@ -524,7 +524,7 @@ purge_directory (char const *directory_name)
struct stat st;
char *p = new_name (directory_name, cur);
if (deref_stat (true, p, &st))
if (deref_stat (false, p, &st))
{
stat_diag (p);
WARN((0, 0, _("%s: Not purging directory: unable to stat"),