summaryrefslogtreecommitdiff
path: root/src/misc/s6-linux-init-umountall.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2020-01-19 00:35:34 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2020-01-19 00:35:34 +0000
commit5e17662d138fc9c9f70a4422eab059c2bdc9432d (patch)
treec08d89139b0e0ad5d0ae2ea2446068afa2ffe295 /src/misc/s6-linux-init-umountall.c
parentf13cdf2fa9609644dd0556669889e8c83fa053ff (diff)
downloads6-linux-init-5e17662d138fc9c9f70a4422eab059c2bdc9432d.tar.xz
Add -C and -B options, prepare for 1.0.4.0
Diffstat (limited to 'src/misc/s6-linux-init-umountall.c')
-rw-r--r--src/misc/s6-linux-init-umountall.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/misc/s6-linux-init-umountall.c b/src/misc/s6-linux-init-umountall.c
index 93b0966..49c9f97 100644
--- a/src/misc/s6-linux-init-umountall.c
+++ b/src/misc/s6-linux-init-umountall.c
@@ -21,12 +21,10 @@ int main (int argc, char const *const *argv)
unsigned int got[EXCLUDEN] = { 0, 0, 0 } ;
stralloc sa = STRALLOC_ZERO ;
unsigned int line = 0 ;
- FILE *fp ;
int e = 0 ;
-
+ FILE *fp = setmntent("/proc/mounts", "r") ;
PROG = "s6-linux-init-umountall" ;
- fp = setmntent("/proc/mounts", "r") ;
if (!fp) strerr_diefu1sys(111, "open /proc/mounts") ;
for (;;)
{