From 2333fd7ebd3c575940690efef14c44e15abef121 Mon Sep 17 00:00:00 2001 From: Antoine Jacoutot Date: Fri, 24 Sep 2010 07:44:44 +0000 Subject: Prefer -h instead over -L for symlink test. ok deraadt@ --- distrib/miniroot/install.sub | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'distrib/miniroot/install.sub') 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 -- cgit v1.2.3