Blame 0030-nfs-fix-regex-patterns-in-check.patch

Harald Hoyer 3957aa
From eead77320496939196428eb33b528533379f2bf0 Mon Sep 17 00:00:00 2001
Harald Hoyer 3957aa
From: Cong Wang <xiyou.wangcong@gmail.com>
Harald Hoyer 3957aa
Date: Tue, 20 Dec 2011 14:10:00 +0800
Harald Hoyer 3957aa
Subject: [PATCH] nfs: fix regex patterns in check()
Harald Hoyer 3957aa
Harald Hoyer 3957aa
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Harald Hoyer 3957aa
---
Harald Hoyer 3957aa
 modules.d/95nfs/module-setup.sh |    6 +++---
Harald Hoyer 3957aa
 1 files changed, 3 insertions(+), 3 deletions(-)
Harald Hoyer 3957aa
Harald Hoyer 3957aa
diff --git a/modules.d/95nfs/module-setup.sh b/modules.d/95nfs/module-setup.sh
Harald Hoyer 3957aa
index 641d917..6778f28 100755
Harald Hoyer 3957aa
--- a/modules.d/95nfs/module-setup.sh
Harald Hoyer 3957aa
+++ b/modules.d/95nfs/module-setup.sh
Harald Hoyer 3957aa
@@ -9,9 +9,9 @@ check() {
Harald Hoyer 3957aa
 
Harald Hoyer 3957aa
     [[ $hostonly ]] || [[ $mount_needs ]] && {
Harald Hoyer 3957aa
         for fs in ${host_fs_types[@]}; do
Harald Hoyer 3957aa
-            strstr "$fs" "|nfs"  && return 0
Harald Hoyer 3957aa
-            strstr "$fs" "|nfs3" && return 0
Harald Hoyer 3957aa
-            strstr "$fs" "|nfs4" && return 0
Harald Hoyer 3957aa
+            strstr "$fs" "\|nfs"  && return 0
Harald Hoyer 3957aa
+            strstr "$fs" "\|nfs3" && return 0
Harald Hoyer 3957aa
+            strstr "$fs" "\|nfs4" && return 0
Harald Hoyer 3957aa
         done
Harald Hoyer 3957aa
         return 255
Harald Hoyer 3957aa
     }