From: Stepan Kasal Date: Tue, 4 Dec 2007 18:21:45 +0000 (+0100) Subject: shutdown: use _PATH_MOUNTED instead of _PATH_MTAB X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9af2166d11cddb90d71ddca68f47d5d17423a420;p=util-linux shutdown: use _PATH_MOUNTED instead of _PATH_MTAB Signed-off-by: Stepan Kasal --- 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;