From: Ian Kent Date: Mon, 29 Aug 2011 16:29:36 +0000 (-0400) Subject: umount.nfs: fix nfs4 check X-Git-Tag: nfs-utils-1-2-5-rc2~6 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;ds=sidebyside;h=3564ebbf04b70188cda3fe679294ca7ad5f2a927;hp=3564ebbf04b70188cda3fe679294ca7ad5f2a927;p=nfs-utils.git umount.nfs: fix nfs4 check From: Ian Kent nfs_umount_is_vers4() doesn't take acount of the escaping of characters seen in /proc/mounts and /etc/mtab as the functions in fstab.c do. This leads to an inability to umount a mount containing any of these escaped characters (like spaces). This patch changes nfs_umount_is_vers4() to use functions in fstab.c and adds a function to fstab.c to read /proc/mounts specifically, as it was used for the check in nfs_umount_is_vers4() previously. Signed-off-by: Ian Kent Signed-off-by: Steve Dickson ---