]> err.no Git - util-linux/commitdiff
shutdown: use _PATH_MOUNTED instead of _PATH_MTAB
authorStepan Kasal <skasal@redhat.com>
Tue, 4 Dec 2007 18:21:45 +0000 (19:21 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 17 Dec 2007 09:08:44 +0000 (10:08 +0100)
Signed-off-by: Stepan Kasal <skasal@redhat.com>
login-utils/shutdown.c

index 5cbe803d5b94a53e0a42c07216c1ceca8479fc1c..f798e58127c6345656af29f7fb5861b03fa551a0 100644 (file)
@@ -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;