summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorajacoutot <ajacoutot@openbsd.org>2010-09-24 07:44:43 +0000
committerajacoutot <ajacoutot@openbsd.org>2010-09-24 07:44:43 +0000
commita9e726733cc0582b2ebee59dff01e6df33e865ef (patch)
tree352512daaabcdf194de6d016737f3bfa46f666c4
parentuseless store (diff)
downloadwireguard-openbsd-a9e726733cc0582b2ebee59dff01e6df33e865ef.tar.xz
wireguard-openbsd-a9e726733cc0582b2ebee59dff01e6df33e865ef.zip
Prefer -h instead over -L for symlink test.
ok deraadt@
-rw-r--r--distrib/miniroot/install.sub4
1 files changed, 2 insertions, 2 deletions
diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub
index 0d22c3b2b7e..336dda69046 100644
--- a/distrib/miniroot/install.sub
+++ b/distrib/miniroot/install.sub
@@ -1,4 +1,4 @@
-# $OpenBSD: install.sub,v 1.619 2010/09/23 13:30:15 jsing Exp $
+# $OpenBSD: install.sub,v 1.620 2010/09/24 07:44:43 ajacoutot Exp $
# $NetBSD: install.sub,v 1.5.2.8 1996/09/02 23:25:02 pk Exp $
#
# Copyright (c) 1997-2009 Todd Miller, Theo de Raadt, Ken Westerback
@@ -1431,7 +1431,7 @@ set_timezone() {
# If configured in a previous call, return immediately
[[ -n $TZ ]] && return
- if [[ -L /mnt/etc/localtime ]]; then
+ if [[ -h /mnt/etc/localtime ]]; then
TZ=$(ls -l /mnt/etc/localtime 2>/dev/null)
TZ=${TZ#*${_zoneroot#/mnt}/}
fi