summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortodd <todd@openbsd.org>2000-04-24 04:23:13 +0000
committertodd <todd@openbsd.org>2000-04-24 04:23:13 +0000
commit45053e49cd4f452963a34121ead870dfca7a14d6 (patch)
tree2004b6756037d315a0282261a96b22aea024e630
parentAdd xstrdup() - like strdup but get fatal error if memory is exhausted. (diff)
downloadwireguard-openbsd-45053e49cd4f452963a34121ead870dfca7a14d6.tar.xz
wireguard-openbsd-45053e49cd4f452963a34121ead870dfca7a14d6.zip
fix per pr1192; also == "xx" -> ~ /xx/, same thought
-rw-r--r--etc/daily6
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/daily b/etc/daily
index 3c3ecbf22b3..a4ce710cb76 100644
--- a/etc/daily
+++ b/etc/daily
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $OpenBSD: daily,v 1.28 1999/03/16 02:47:53 deraadt Exp $
+# $OpenBSD: daily,v 1.29 2000/04/24 04:23:13 todd Exp $
# From: @(#)daily 8.2 (Berkeley) 1/25/94
#
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin
@@ -94,10 +94,10 @@ fi
# use it as a backup root filesystem to be updated daily.
[ "X$ROOTBACKUP" = X1 ] && {
rootdev=`awk '$2 == "/" && $1 ~ /^\/dev\// && $3 == "ffs" && \
- $4 == "rw" \
+ $4 ~ /rw/ \
{ print substr($1, 6) }' < /etc/fstab`
rootbak=`awk '$2 == "/altroot" && $1 ~ /^\/dev\// && $3 == "ffs" && \
- $4 == "xx" \
+ $4 ~ /xx/ \
{ print substr($1, 6) }' < /etc/fstab`
[ X$rootdev != X -a X$rootbak != X ] && {
sync