From ebf869beb1dddfd7213dc28831879597ab378f5c Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Thu, 30 Jan 2020 23:04:58 +0000 Subject: With the correct deps.mak --- src/misc/s6-linux-init-umountall.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/misc/s6-linux-init-umountall.c') 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 ; -- cgit v1.3.1