Browse Source

Don't process an entry if the nodump flag is set.

Jeff Rizzo 10 years ago
parent
commit
8119124359
1 changed files with 3 additions and 0 deletions
  1. 3 0
      attic/archiver.py

+ 3 - 0
attic/archiver.py

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