Ignore unix sockets

This commit is contained in:
Jonas Borgström 2011-08-07 19:44:13 +02:00
parent 8616df7f32
commit 2c328be1b1
1 changed files with 3 additions and 0 deletions

View File

@ -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)