소스 검색

(file_count_links): do nothing if hard_dereference_option is set.

Sergey Poznyakoff 17 년 전
부모
커밋
eaaadcfd36
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      src/create.c

+ 2 - 0
src/create.c

@@ -1422,6 +1422,8 @@ dump_hard_link (struct tar_stat_info *st)
 static void
 file_count_links (struct tar_stat_info *st)
 {
+  if (hard_dereference_option)
+    return;
   if (st->stat.st_nlink > 1)
     {
       struct link *duplicate;