Browse Source

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

Sergey Poznyakoff 19 years ago
parent
commit
a5375b618c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/incremen.c

+ 1 - 1
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"),