(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:
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user