Signed-off-by: Stepan Kasal <skasal@xxxxxxxxxx> --- login-utils/shutdown.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/login-utils/shutdown.c b/login-utils/shutdown.c index 5cbe803..f798e58 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; -- 1.5.3.4 - To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html