summaryrefslogtreecommitdiff
path: root/distrib/miniroot/install.sub
diff options
context:
space:
mode:
authorAntoine Jacoutot <ajacoutot@cvs.openbsd.org>2010-09-24 07:44:44 +0000
committerAntoine Jacoutot <ajacoutot@cvs.openbsd.org>2010-09-24 07:44:44 +0000
commit2333fd7ebd3c575940690efef14c44e15abef121 (patch)
tree0859becd22545a7b7a5908faa2a9f2fa798f4e75 /distrib/miniroot/install.sub
parent8c76bc6bc1a6181472b25e013261dcaaefcd5c91 (diff)
Prefer -h instead over -L for symlink test.
ok deraadt@
Diffstat (limited to 'distrib/miniroot/install.sub')
-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