浏览代码

Merge pull request #784 from pyhalov/doors-1.0

Don't try to backup doors or event ports (Solaris and derivates).
TW 9 年之前
父节点
当前提交
e435a5ac41
共有 1 个文件被更改,包括 6 次插入0 次删除
  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