diff options
author | Antoine Jacoutot <ajacoutot@cvs.openbsd.org> | 2024-07-08 14:47:43 +0000 |
---|---|---|
committer | Antoine Jacoutot <ajacoutot@cvs.openbsd.org> | 2024-07-08 14:47:43 +0000 |
commit | a7832424c2af42833a84034f3940f60e81b52f85 (patch) | |
tree | 8922aecc17ebc64cbfefc86541bb80fd761dfca7 /usr.sbin | |
parent | 31f5a15902a5a1bb8e354696e7eb9102ad9539b1 (diff) |
Use install -F instead of cat(1); no clue what I was thinking.
ok robert@
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/rcctl/rcctl.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/rcctl/rcctl.sh b/usr.sbin/rcctl/rcctl.sh index 56ee8cb173d..fddd8d777ca 100644 --- a/usr.sbin/rcctl/rcctl.sh +++ b/usr.sbin/rcctl/rcctl.sh @@ -1,6 +1,6 @@ #!/bin/ksh # -# $OpenBSD: rcctl.sh,v 1.118 2024/07/08 14:32:44 ajacoutot Exp $ +# $OpenBSD: rcctl.sh,v 1.119 2024/07/08 14:47:42 ajacoutot Exp $ # # Copyright (c) 2014, 2015-2022 Antoine Jacoutot <ajacoutot@openbsd.org> # Copyright (c) 2014 Ingo Schwarze <schwarze@openbsd.org> @@ -128,7 +128,7 @@ rcconf_edit_end() sort -u -o ${_TMP_RCCONF} ${_TMP_RCCONF} || \ rcctl_err "cannot modify ${_TMP_RCCONF}" if ! cmp -s ${_TMP_RCCONF} /etc/rc.conf.local; then - cat ${_TMP_RCCONF} >/etc/rc.conf.local || \ + install -F -m0644 -o0 -g0 ${_TMP_RCCONF} /etc/rc.conf.local || rcctl_err "cannot write to /etc/rc.conf.local" fi if [ ! -s /etc/rc.conf.local ]; then |