From afaf19b6f4f49ad6c54bd55a7ee534f34b17e6c4b51abdb9d3fb6814e664ffa9 Mon Sep 17 00:00:00 2001 From: Neil Brown Date: Wed, 12 Oct 2011 05:19:58 +0000 Subject: [PATCH] - nfs.init: handle case where kernel adds trailing slash to name in /proc/mounts. (bnc#722431 bnc#720376) OBS-URL: https://build.opensuse.org/package/show/Base:System/nfs-utils?expand=0&rev=61 --- nfs-utils.changes | 7 +++++++ nfs.init | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/nfs-utils.changes b/nfs-utils.changes index 34d22de..1f50b7a 100644 --- a/nfs-utils.changes +++ b/nfs-utils.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Wed Oct 12 05:18:17 UTC 2011 - nfbrown@suse.com + +- nfs.init: handle case where kernel adds trailing + slash to name in /proc/mounts. + (bnc#722431 bnc#720376) + ------------------------------------------------------------------- Sat Oct 1 15:24:33 UTC 2011 - crrodriguez@opensuse.org diff --git a/nfs.init b/nfs.init index 70f2cc5..3d4c9a1 100644 --- a/nfs.init +++ b/nfs.init @@ -61,7 +61,8 @@ while read -r what where type options rest ; do esac nfs=yes if test "$1" = status ; then - grep -qF "$what $where nfs" /proc/mounts && continue + grep -qF "$what $where nfs +$what/ $where nfs" /proc/mounts && continue state=3 continue fi