aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-11-23 19:40:12 +0100
committerLennart Poettering <lennart@poettering.net>2018-12-18 14:38:30 +0100
commite0fe3a03ab423711b1e766e3d2980a1927b34d5e (patch)
tree100b03dff9efb29886bcf7a9d5565ae11fe3ca93
parentgpt-auto: compare kernel cmdline args with proc_cmdline_key_streq() (diff)
downloadsystemd-e0fe3a03ab423711b1e766e3d2980a1927b34d5e.tar.gz
systemd-e0fe3a03ab423711b1e766e3d2980a1927b34d5e.tar.bz2
systemd-e0fe3a03ab423711b1e766e3d2980a1927b34d5e.zip
remount-fs: use PATH_IN_SET() at one more place
-rw-r--r--src/remount-fs/remount-fs.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/remount-fs/remount-fs.c b/src/remount-fs/remount-fs.c
index af92ddb96..bfc6ca67a 100644
--- a/src/remount-fs/remount-fs.c
+++ b/src/remount-fs/remount-fs.c
@@ -56,8 +56,7 @@ static int run(int argc, char *argv[]) {
/* Remount the root fs, /usr and all API VFS */
if (!mount_point_is_api(me->mnt_dir) &&
- !path_equal(me->mnt_dir, "/") &&
- !path_equal(me->mnt_dir, "/usr"))
+ !PATH_IN_SET(me->mnt_dir, "/", "/usr"))
continue;
log_debug("Remounting %s", me->mnt_dir);