Skip to content

Commit

Permalink
If UTC is a symlink resolve it when setting localtime
Browse files Browse the repository at this point in the history
  • Loading branch information
sjoerdsimons authored and Jack Leigh committed May 16, 2014
1 parent 0c99e5f commit ae60e79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion init_buildsystem
Original file line number Diff line number Diff line change
Expand Up @@ -980,7 +980,7 @@ done

if test -e $BUILD_ROOT/usr/share/zoneinfo/UTC ; then
for PROG in /usr/sbin/zic /usr/bin/zic /bin/zic /sbin/zic ; do
test -x $BUILD_ROOT/$PROG && chroot $BUILD_ROOT $PROG -l UTC
test -x $BUILD_ROOT/$PROG && chroot $BUILD_ROOT bash -c "$PROG -l $(readlink -f /usr/share/zoneinfo/UTC)"
done
fi

Expand Down

0 comments on commit ae60e79

Please sign in to comment.