set right mode on ssh-agent at boot-time
authorsemarie <semarie@openbsd.org>
Thu, 4 Apr 2024 16:00:51 +0000 (16:00 +0000)
committersemarie <semarie@openbsd.org>
Thu, 4 Apr 2024 16:00:51 +0000 (16:00 +0000)
which sthen@
ok deraadt@

usr.bin/ssh/ssh-agent/Makefile

index c60a219..9eb6c61 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: Makefile,v 1.39 2024/04/01 15:50:17 deraadt Exp $
+#      $OpenBSD: Makefile,v 1.40 2024/04/04 16:00:51 semarie Exp $
 
 .PATH:         ${.CURDIR}/..
 
@@ -28,7 +28,7 @@ install.sh: Makefile
        echo "${CC} ${LDFLAGS} ${LDSTATIC} -o ${PROG}" \
            "\`echo " ${OBJS} "| tr ' ' '\\\n' | sort -R\`" ${LDADD} >> $@
        echo "./${PROG} /usr/bin/true" >> $@
-       echo "install -c -s  -o root -g bin -m ${BINMODE} ${PROG} " \
+       echo "install -c -s -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} ${PROG} " \
            "${BINDIR}/${PROG}" >> $@
 
 ${PROG}.tar: ${OBJS} install.sh
@@ -37,5 +37,5 @@ ${PROG}.tar: ${OBJS} install.sh
 afterinstall: ${PROG}.tar
        install -d -o root -g wheel -m 755 \
            ${DESTDIR}/usr/share/relink/${BINDIR}/${PROG}
-       install -o ${BINOWN} -g ${BINGRP} -m 640 \
+       install -o root -g bin -m 640 \
            ${PROG}.tar ${DESTDIR}/usr/share/relink/${BINDIR}/${PROG}/${PROG}.tar