]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
remount-fs: use PATH_IN_SET() at one more place
authorLennart Poettering <lennart@poettering.net>
Fri, 23 Nov 2018 18:40:12 +0000 (19:40 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 18 Dec 2018 13:38:30 +0000 (14:38 +0100)
src/remount-fs/remount-fs.c

index af92ddb96cf5499a22c5a1692d0a9bf6cb7f11c1..bfc6ca67a1cf341d232352407d22321f5bd4e8e4 100644 (file)
@@ -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);