summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/misc/s6-linux-init-umountall.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/misc/s6-linux-init-umountall.c b/src/misc/s6-linux-init-umountall.c
index cb5f7d5..42fae15 100644
--- a/src/misc/s6-linux-init-umountall.c
+++ b/src/misc/s6-linux-init-umountall.c
@@ -35,15 +35,14 @@ int main (int argc, char const *const *argv)
errno = 0 ;
p = getmntent(fp) ;
if (!p) break ;
+ if (!strcmp(p->mnt_dir, S6_LINUX_INIT_TMPFS)) continue ;
for (; i < EXCLUDEN ; i++)
if (!strcmp(p->mnt_type, exclude_type[i]))
{
got[i]++ ;
break ;
}
- if ((i < EXCLUDEN && got[i] == 1)
- || !strcmp(p->mnt_dir, S6_LINUX_INIT_TMPFS))
- continue ;
+ if (i < EXCLUDEN && got[i] == 1) continue ;
if (line >= MAXLINES)
strerr_dief1x(100, "too many mount points") ;
mountpoints[line++] = sa.len ;