projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a9c44e
)
remount-fs: use PATH_IN_SET() at one more place
author
Lennart Poettering
<lennart@poettering.net>
Fri, 23 Nov 2018 18:40:12 +0000
(19:40 +0100)
committer
Lennart Poettering
<lennart@poettering.net>
Tue, 18 Dec 2018 13:38:30 +0000
(14:38 +0100)
src/remount-fs/remount-fs.c
patch
|
blob
|
history
diff --git
a/src/remount-fs/remount-fs.c
b/src/remount-fs/remount-fs.c
index
af92ddb
..
bfc6ca6
100644
(file)
--- 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);