summaryrefslogtreecommitdiff
path: root/src/misc/s6-linux-init-umountall.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2020-01-30 23:04:58 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2020-01-30 23:04:58 +0000
commitebf869beb1dddfd7213dc28831879597ab378f5c (patch)
tree283c2d770989e6d18c82041e516da47c23705441 /src/misc/s6-linux-init-umountall.c
parent4e6634208509f5c67b4d5ad449db696b8e4b6c3d (diff)
downloads6-linux-init-ebf869beb1dddfd7213dc28831879597ab378f5c.tar.xz
With the correct deps.mak
Diffstat (limited to 'src/misc/s6-linux-init-umountall.c')
-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 ;