Browse Source

Don't try to backup doors or event ports

Alexander Pyhalov 9 năm trước cách đây
mục cha
commit
e98f823f34
1 tập tin đã thay đổi với 6 bổ sung0 xóa
  1. 6 0
      borg/archiver.py

+ 6 - 0
borg/archiver.py

@@ -281,6 +281,12 @@ class Archiver:
         elif stat.S_ISSOCK(st.st_mode):
             # Ignore unix sockets
             return
+        elif stat.S_ISDOOR(st.st_mode):
+            # Ignore Solaris doors
+            return
+        elif stat.S_ISPORT(st.st_mode):
+            # Ignore Solaris event ports
+            return
         else:
             self.print_warning('Unknown file type: %s', path)
             return