Index | Thread | Search

From:
Stuart Henderson <stu@spacehopper.org>
Subject:
Re: syspatch(8): log applied patches
To:
j@bitminer.ca
Cc:
Tech <tech@openbsd.org>
Date:
Thu, 12 Jun 2025 13:14:55 +0100

Download raw body.

Thread
I think this makes sense.  ok sthen@


On 2025/05/11 12:37, j@bitminer.ca wrote:
> 
> It would be nice to have syspatch log changes it makes.
> 
> There is precedent in pkg_add and sysupgrade.
> 
> Comments?
> 
> 
> John
> 
> 
> Index: syspatch.sh
> ===================================================================
> RCS file: /cvs/src/usr.sbin/syspatch/syspatch.sh,v
> diff -u -p -r1.168 syspatch.sh
> --- syspatch.sh	13 Dec 2023 17:50:23 -0000	1.168
> +++ syspatch.sh	11 May 2025 16:13:03 -0000
> @@ -325,5 +325,6 @@ if ((OPTIND == 1)); then
>  	for _PATCH in ${_PATCHES}; do
>  		apply_patch ${_OSrev}-${_PATCH}
>  		_PATCH_APPLIED=true
> +		logger -t syspatch Applied ${_PATCH}
>  	done
>  fi
>