From: Sergey Poznyakoff Date: Sat, 3 Sep 2005 10:27:13 +0000 (+0000) Subject: (purge_directory): Do not dereference symbolic links. Bug reported by Ralph Corderoy... X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=a5375b618ceac671af81d1d7e0cec7bfd813a76b;p=chaz%2Ftar (purge_directory): Do not dereference symbolic links. Bug reported by Ralph Corderoy and David Brown --- diff --git a/src/incremen.c b/src/incremen.c index ebcf808..9902d10 100644 --- a/src/incremen.c +++ b/src/incremen.c @@ -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"),