소스 검색

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

Sergey Poznyakoff 20 년 전
부모
커밋
a5375b618c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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"),