Skip to content

Commit

Permalink
certctl: Set METALOG ownership to root:wheel when run unprivileged
Browse files Browse the repository at this point in the history
This sets the correct ownership values in when building base.txz

PR: 283340

Signed-off-by: Pat Maddox <[email protected]>
  • Loading branch information
patmaddox committed Dec 19, 2024
1 parent 07e5e60 commit e482667
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions usr.sbin/certctl/certctl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# Copyright 2018 Allan Jude <[email protected]>
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted providing that the following conditions
# modification, are permitted providing that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
Expand Down Expand Up @@ -334,7 +334,7 @@ fi
: ${METALOG:=${DESTDIR}/METALOG}
INSTALLFLAGS=
if "$UNPRIV" ; then
INSTALLFLAGS="-U -M ${METALOG} -D ${DESTDIR}"
INSTALLFLAGS="-U -M ${METALOG} -D ${DESTDIR} -N ${DESTDIR}${DISTBASE}/etc -o root -g wheel"
fi
: ${LOCALBASE:=$(sysctl -n user.localbase)}
: ${TRUSTPATH:=${DESTDIR}${DISTBASE}/usr/share/certs/trusted:${DESTDIR}${LOCALBASE}/share/certs:${DESTDIR}${LOCALBASE}/etc/ssl/certs}
Expand Down

0 comments on commit e482667

Please sign in to comment.