[PATCH] shutdown: use _PATH_MOUNTED instead of _PATH_MTAB

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux