]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/import/pull-tar.c
btrfs-util: Move subvolume creation to basic/btrfs.h
[thirdparty/systemd.git] / src / import / pull-tar.c
index e474dffa72ec6bbb453c5fe7bc76c6d33d41a772..f9c82daec0e1df5c1478660ad7c214171484c011 100644 (file)
@@ -516,7 +516,7 @@ static int tar_pull_job_on_open_disk_tar(PullJob *j) {
                 (void) rm_rf(where, REMOVE_ROOT|REMOVE_PHYSICAL|REMOVE_SUBVOLUME);
 
         if (i->flags & PULL_BTRFS_SUBVOL)
-                r = btrfs_subvol_make_fallback(where, 0755);
+                r = btrfs_subvol_make_fallback(AT_FDCWD, where, 0755);
         else
                 r = RET_NERRNO(mkdir(where, 0755));
         if (r == -EEXIST && (i->flags & PULL_DIRECT)) /* EEXIST is OK if in direct mode, but not otherwise,