From 9af2166d11cddb90d71ddca68f47d5d17423a420 Mon Sep 17 00:00:00 2001 From: Stepan Kasal Date: Tue, 4 Dec 2007 19:21:45 +0100 Subject: [PATCH] shutdown: use _PATH_MOUNTED instead of _PATH_MTAB Signed-off-by: Stepan Kasal --- login-utils/shutdown.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/login-utils/shutdown.c b/login-utils/shutdown.c index 5cbe803d..f798e581 100644 --- a/login-utils/shutdown.c +++ b/login-utils/shutdown.c @@ -628,8 +628,8 @@ unmount_disks_ourselves(void) char *filesys; sync(); - if (!(mtab = setmntent(_PATH_MTAB, "r"))) { - my_puts("shutdown: Cannot open " _PATH_MTAB "."); + if (!(mtab = setmntent(_PATH_MOUNTED, "r"))) { + my_puts("shutdown: Cannot open " _PATH_MOUNTED "."); return; } n = 0; -- 2.39.5