borgbackup / borg

Compare 4605078 ... +4 ... 7a0ffed


@@ -39,6 +39,7 @@
Loading
39 39
from .helpers import safe_ns
40 40
from .helpers import ellipsis_truncate, ProgressIndicatorPercent, log_multi
41 41
from .helpers import os_open, flags_normal, flags_dir
42 +
from .helpers import os_stat
42 43
from .helpers import msgpack
43 44
from .helpers import sig_int
44 45
from .lrucache import LRUCache
@@ -1284,7 +1285,7 @@
Loading
1284 1285
        with self.create_helper(path, st, dev_type) as (item, status, hardlinked, hardlink_master):  # char/block device
1285 1286
            # looks like we can not work fd-based here without causing issues when trying to open/close the device
1286 1287
            with backup_io('stat'):
1287 -
                st = stat_update_check(st, os.stat(name, dir_fd=parent_fd, follow_symlinks=False))
1288 +
                st = stat_update_check(st, os_stat(path=path, parent_fd=parent_fd, name=name, follow_symlinks=False))
1288 1289
            item.rdev = st.st_rdev
1289 1290
            item.update(self.metadata_collector.stat_attrs(st, path))
1290 1291
            return status

@@ -681,7 +681,7 @@
Loading
681 681
                return fso.process_symlink(path=path, parent_fd=parent_fd, name=name, st=st)
682 682
            else:
683 683
                try:
684 -
                    st_target = os.stat(name, dir_fd=parent_fd, follow_symlinks=True)
684 +
                    st_target = os_stat(path=path, parent_fd=parent_fd, name=name, follow_symlinks=True)
685 685
                except OSError:
686 686
                    special = False
687 687
                else:

Learn more Showing 4 files with coverage changes found.

Changes in src/borg/archive.py
-8
+1
+7
Loading file...
Changes in src/borg/helpers/parseformat.py
-1
+1
Loading file...
Changes in src/borg/archiver.py
New
Loading file...
Changes in src/borg/upgrader.py
-1
-1
+2
Loading file...
Files Coverage
src/borg -0.07% 83.31%
Project Totals (38 files) 83.31%
Loading