diff options
author | Alexander Hall <halex@cvs.openbsd.org> | 2013-08-19 21:07:23 +0000 |
---|---|---|
committer | Alexander Hall <halex@cvs.openbsd.org> | 2013-08-19 21:07:23 +0000 |
commit | 54b5215631d128af80ce860cac1fc60d30c5bc18 (patch) | |
tree | c576b8a7f6f8a5126cea82fe18b2aeda7b80e6af /distrib | |
parent | 028fd162fa823294af13f8f45ce98888db2c23c5 (diff) |
(temporarily) introduce upgrade_to64time_t() to handle the transition
to 64 bit time_t
prodded by deraadt@
Diffstat (limited to 'distrib')
-rw-r--r-- | distrib/miniroot/install.sub | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub index 9d44b0bbb58..58d9cf4f899 100644 --- a/distrib/miniroot/install.sub +++ b/distrib/miniroot/install.sub @@ -1,4 +1,4 @@ -# $OpenBSD: install.sub,v 1.683 2013/07/31 11:26:58 ajacoutot Exp $ +# $OpenBSD: install.sub,v 1.684 2013/08/19 21:07:22 halex 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 @@ -1859,6 +1859,14 @@ questions() { fi } +# Rebuild or wipe time_t size dependant stuff. +# XXX To be removed after 5.6 is released. +upgrade_to64time_t() { + /mnt/usr/sbin/pwd_mkdb -d /mnt/etc master.passwd + >/mnt/var/log/lastlog + >/mnt/var/run/utmp +} + finish_up() { local _dev _mp _fstype _rest @@ -1917,6 +1925,9 @@ finish_up() { update_firmware + # XXX To be removed after 5.6 is released. + upgrade_to64time_t + # Pat on the back. cat <<__EOT |