소스 검색

extract: add generic exception handler when setting xattrs, fixes #5092

emit a warning message giving the path, xattr key and error message.

also: continue trying to restore other xattrs and bsdflags afterwards
(it did not continue with this before this fix).
Thomas Waldmann 4 년 전
부모
커밋
ecae0841b1
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/borg/xattr.py

+ 1 - 1
src/borg/xattr.py

@@ -147,5 +147,5 @@ def set_all(path, xattrs, follow_symlinks=False):
                 logger.warning('%s: No space left on device while setting extended attribute %s (len = %d)' % (
                                path_str, k_str, len(v)))
             else:
-                raise
+                logger.warning('%s: when setting extended attribute %s: %s' % (path_str, k_str, str(e)))
     return warning