From 2c328be1b138ddd888e0d01f2a105f78db00f382 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Borgstr=C3=B6m?= Date: Sun, 7 Aug 2011 19:44:13 +0200 Subject: [PATCH] Ignore unix sockets --- darc/archiver.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/darc/archiver.py b/darc/archiver.py index 61a493c5e..c92537e1a 100644 --- a/darc/archiver.py +++ b/darc/archiver.py @@ -99,6 +99,9 @@ class Archiver(object): return if (st.st_ino, st.st_dev) in skip_inodes: return + # Ignore unix sockets + if stat.S_ISSOCK(st.st_mode): + return self.print_verbose(path) if stat.S_ISDIR(st.st_mode): archive.process_dir(path, st)