summaryrefslogtreecommitdiff
path: root/usr.sbin/syspatch
diff options
context:
space:
mode:
authorAntoine Jacoutot <ajacoutot@cvs.openbsd.org>2017-05-24 11:21:14 +0000
committerAntoine Jacoutot <ajacoutot@cvs.openbsd.org>2017-05-24 11:21:14 +0000
commitb3981c10f806d72101942b2e5a4a29a9101232fd (patch)
tree9aca56e3a6579641f67ad1ec5d760312eaae5f45 /usr.sbin/syspatch
parent361f85e702b26c730f60c1cc1cccfbbbb1ca6164 (diff)
Preserve the modification time when install(1)ing.
Diffstat (limited to 'usr.sbin/syspatch')
-rw-r--r--usr.sbin/syspatch/syspatch.sh6
1 files changed, 3 insertions, 3 deletions
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 <ajacoutot@openbsd.org>
#
@@ -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()