summaryrefslogtreecommitdiff
path: root/etc/rc.d/mountd
diff options
context:
space:
mode:
Diffstat (limited to 'etc/rc.d/mountd')
-rw-r--r--etc/rc.d/mountd6
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/rc.d/mountd b/etc/rc.d/mountd
index c18337991fc..ffedeb74fe9 100644
--- a/etc/rc.d/mountd
+++ b/etc/rc.d/mountd
@@ -1,6 +1,6 @@
#!/bin/ksh
#
-# $OpenBSD: mountd,v 1.7 2018/01/11 19:52:12 rpe Exp $
+# $OpenBSD: mountd,v 1.8 2018/01/11 21:09:26 rpe Exp $
daemon="/sbin/mountd"
@@ -10,8 +10,8 @@ pexp="mountd: \[priv\]"
rc_stop=NO
rc_pre() {
- [ -s /etc/exports ] && grep -qv '^#' /etc/exports && \
- rm -f /var/db/mountdtab && \
+ [[ -s /etc/exports ]] && grep -qv '^#' /etc/exports &&
+ rm -f /var/db/mountdtab &&
echo -n > /var/db/mountdtab
}