From b3981c10f806d72101942b2e5a4a29a9101232fd Mon Sep 17 00:00:00 2001 From: Antoine Jacoutot Date: Wed, 24 May 2017 11:21:14 +0000 Subject: Preserve the modification time when install(1)ing. --- usr.sbin/syspatch/syspatch.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.sbin/syspatch') diff --git a/usr.sbin/syspatch/syspatch.sh b/usr.sbin/syspatch/syspatch.sh index 028d78725c7..510925d8c22 100644 --- a/usr.sbin/syspatch/syspatch.sh +++ b/usr.sbin/syspatch/syspatch.sh @@ -1,6 +1,6 @@ #!/bin/ksh # -# $OpenBSD: syspatch.sh,v 1.108 2017/05/24 08:32:16 ajacoutot Exp $ +# $OpenBSD: syspatch.sh,v 1.109 2017/05/24 11:21:13 ajacoutot Exp $ # # Copyright (c) 2016, 2017 Antoine Jacoutot # @@ -162,7 +162,7 @@ install_file() eval $(stat -f "_fmode=%OMp%OLp _fown=%Su _fgrp=%Sg" ${_src}) - install -DFS -m ${_fmode} -o ${_fown} -g ${_fgrp} ${_src} ${_dst} + install -DFSp -m ${_fmode} -o ${_fown} -g ${_fgrp} ${_src} ${_dst} } install_kernel() @@ -174,7 +174,7 @@ install_kernel() [[ ${_kern##*/} == bsd ]] && _bsd=bsd.sp || _bsd=bsd fi - install -FS ${_kern} /${_bsd:-${_kern##*/}} + install -FSp ${_kern} /${_bsd:-${_kern##*/}} } ls_installed() -- cgit v1.2.3