瀏覽代碼

insecure locks test

Bob Mottram 8 年之前
父節點
當前提交
8a844d3024
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      tests/check-nfs-insecure.sh

+ 1
- 1
tests/check-nfs-insecure.sh 查看文件

@@ -1,5 +1,5 @@
1 1
 #!/bin/bash
2 2
 
3
-if ! sed -e '/^#/d' -e '/^[ \t][ \t]*#/d' -e 's/#.*$//' -e '/^$/d' /etc/exports | grep insecure_locks;then
3
+if grep 'insecure_locks' /etc/exports; then
4 4
         exit 1
5 5
 fi