summaryrefslogtreecommitdiff
path: root/shells/zsh/files/patch-Test_C02cond.ztst
blob: 78da595b24399d2e33f7f2e036823f8b40e328ab (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- Test/C02cond.ztst.orig	2015-11-22 15:17:55 UTC
+++ Test/C02cond.ztst
@@ -154,7 +154,7 @@
     ZTST_skip="[[ -N file ]] not supported on Cygwin"
   elif (( isnfs )); then
     ZTST_skip="[[ -N file ]] not supported with NFS"
-  elif test -f /etc/mtab && { grep $(df . 2>/dev/null| tail -n1 | awk '{print $1}') /etc/mtab | grep -q noatime; }; then
+  elif { mount | grep $(df . 2>/dev/null| tail -n1 | awk '{print $1}') | grep -q noatime; } ; then
     ZTST_skip="[[ -N file ]] not supported with noatime file system"
   else
     [[ -N $newnewnew && ! -N $unmodified ]]