From db9a42545adaa54d789760f842702816625cc384 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 25 Jun 2018 20:04:07 +0200 Subject: chattr: optionally, return the old flags when updating them --- src/basic/btrfs-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/basic/btrfs-util.c') diff --git a/src/basic/btrfs-util.c b/src/basic/btrfs-util.c index 0308048b7f..1c9c5fd162 100644 --- a/src/basic/btrfs-util.c +++ b/src/basic/btrfs-util.c @@ -1715,7 +1715,7 @@ int btrfs_subvol_snapshot_fd(int old_fd, const char *new_path, BtrfsSnapshotFlag * it: the IMMUTABLE bit. Let's use this here, if this is requested. */ if (flags & BTRFS_SNAPSHOT_FALLBACK_IMMUTABLE) - (void) chattr_path(new_path, FS_IMMUTABLE_FL, FS_IMMUTABLE_FL); + (void) chattr_path(new_path, FS_IMMUTABLE_FL, FS_IMMUTABLE_FL, NULL); } else { r = btrfs_subvol_set_read_only(new_path, true); if (r < 0) -- cgit v1.2.3