summaryrefslogtreecommitdiffstats
path: root/src/core/dbus-execute.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2022-12-14 18:48:59 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2022-12-15 06:15:59 +0100
commitedac5c4636d7b31086cb0bd25646318d664e075a (patch)
treeb7cd71453e962ab4b57f6a415623dbcc8b911b40 /src/core/dbus-execute.c
parentmountpoint-util: rename mount_propagation_flags_to_string() and friends as si... (diff)
downloadsystemd-edac5c4636d7b31086cb0bd25646318d664e075a.tar.xz
systemd-edac5c4636d7b31086cb0bd25646318d664e075a.zip
mountpoint-util: introduce mount_propagation_flag_is_valid()
Diffstat (limited to '')
-rw-r--r--src/core/dbus-execute.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/dbus-execute.c b/src/core/dbus-execute.c
index 4b41cfe778..41eeb1ee94 100644
--- a/src/core/dbus-execute.c
+++ b/src/core/dbus-execute.c
@@ -1600,7 +1600,7 @@ static int parse_personality(const char *s, unsigned long *p) {
}
static const char* mount_propagation_flag_to_string_with_check(unsigned long n) {
- if (!IN_SET(n, 0, MS_SHARED, MS_PRIVATE, MS_SLAVE))
+ if (!mount_propagation_flag_is_valid(n))
return NULL;
return mount_propagation_flag_to_string(n);