소스 검색

Check the UF_NODUMP flag properly.

Jeff Rizzo 10 년 전
부모
커밋
e11a4a5d3a
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      attic/archiver.py

+ 1 - 1
attic/archiver.py

@@ -159,7 +159,7 @@ Type "Yes I am sure" if you understand this and want to continue.\n""")
         if stat.S_ISSOCK(st.st_mode):
             return
         # Ignore if nodump flag set
-        if st.st_flags and stat.UF_NODUMP(st.st_flags):
+        if st.st_flags and (st.st_flags & stat.UF_NODUMP):
             return
         self.print_verbose(remove_surrogates(path))
         if stat.S_ISREG(st.st_mode):