diff options
author | Lennart Poettering <lennart@poettering.net> | 2019-03-28 18:41:39 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2019-03-28 18:43:05 +0100 |
commit | d629ba70459251c1d5401dae7cdc0ed0573c8397 (patch) | |
tree | 7f7d5288a4893b58486ddcd9932a56f6ab50af45 /src/tmpfiles | |
parent | 70d8401d745e0fd8059f4da971600484e891285a (diff) | |
download | systemd-d629ba70459251c1d5401dae7cdc0ed0573c8397.tar.gz systemd-d629ba70459251c1d5401dae7cdc0ed0573c8397.tar.bz2 systemd-d629ba70459251c1d5401dae7cdc0ed0573c8397.zip |
tmpfiles: move full chattr flag set to chattr-util.h
It's a pretty generic concept and fits will there, hence let's move it.
Diffstat (limited to 'src/tmpfiles')
-rw-r--r-- | src/tmpfiles/tmpfiles.c | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/src/tmpfiles/tmpfiles.c b/src/tmpfiles/tmpfiles.c index 5251c741ee..84e104f9b5 100644 --- a/src/tmpfiles/tmpfiles.c +++ b/src/tmpfiles/tmpfiles.c @@ -1096,23 +1096,6 @@ static int path_set_acls(Item *item, const char *path) { return r; } -#define ATTRIBUTES_ALL \ - (FS_NOATIME_FL | \ - FS_SYNC_FL | \ - FS_DIRSYNC_FL | \ - FS_APPEND_FL | \ - FS_COMPR_FL | \ - FS_NODUMP_FL | \ - FS_EXTENT_FL | \ - FS_IMMUTABLE_FL | \ - FS_JOURNAL_DATA_FL | \ - FS_SECRM_FL | \ - FS_UNRM_FL | \ - FS_NOTAIL_FL | \ - FS_TOPDIR_FL | \ - FS_NOCOW_FL | \ - FS_PROJINHERIT_FL) - static int parse_attribute_from_arg(Item *item) { static const struct { @@ -1186,7 +1169,7 @@ static int parse_attribute_from_arg(Item *item) { } if (mode == MODE_SET) - mask |= ATTRIBUTES_ALL; + mask |= CHATTR_ALL_FL; assert(mask != 0); |