diff options
author | Lennart Poettering <lennart@poettering.net> | 2018-06-25 20:04:07 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-10-08 21:40:44 +0200 |
commit | db9a42545adaa54d789760f842702816625cc384 (patch) | |
tree | 1166dec405939b1fbcc2fc17e707651fbc0ab5f8 /src/basic/btrfs-util.c | |
parent | efi: allow ESP validity checks to be turned off (diff) | |
download | systemd-db9a42545adaa54d789760f842702816625cc384.tar.xz systemd-db9a42545adaa54d789760f842702816625cc384.zip |
chattr: optionally, return the old flags when updating them
Diffstat (limited to 'src/basic/btrfs-util.c')
-rw-r--r-- | src/basic/btrfs-util.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |