From 8a844d302474c88933584c0f31ce2b099c01cb1b Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 29 Nov 2016 13:40:37 +0000 Subject: [PATCH] insecure locks test --- tests/check-nfs-insecure.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/check-nfs-insecure.sh b/tests/check-nfs-insecure.sh index 1fe9fe71..66ea3ec5 100644 --- a/tests/check-nfs-insecure.sh +++ b/tests/check-nfs-insecure.sh @@ -1,5 +1,5 @@ #!/bin/bash -if ! sed -e '/^#/d' -e '/^[ \t][ \t]*#/d' -e 's/#.*$//' -e '/^$/d' /etc/exports | grep insecure_locks;then +if grep 'insecure_locks' /etc/exports; then exit 1 fi