From dd3f285f3c07a2c716764fab2c1ca994b39c0827 Mon Sep 17 00:00:00 2001 From: Justin Date: Sat, 8 Apr 2023 11:36:28 +0800 Subject: [PATCH] openssh: fix default path set default path to '/usr/local/sbin:/usr/local/bin:/usr/bin'. by default, openssh's default path is '/usr/bin:/bin:/usr/sbin:/sbin', according to appendpath function in /etc/profile, /usr/local/{bin,sbin} will be append to the end of $PATH when it is a ssh connection. this fixes the issue. --- srcpkgs/openssh/template | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/srcpkgs/openssh/template b/srcpkgs/openssh/template index 88f39d31fbb3..b2c5926e7f66 100644 --- a/srcpkgs/openssh/template +++ b/srcpkgs/openssh/template @@ -1,7 +1,7 @@ # Template file for 'openssh' pkgname=openssh version=9.3p1 -revision=1 +revision=2 build_style=gnu-configure configure_args="--datadir=/usr/share/openssh --sysconfdir=/etc/ssh --without-selinux --with-privsep-user=nobody @@ -9,6 +9,7 @@ configure_args="--datadir=/usr/share/openssh --disable-strip --with-privsep-path=/var/chroot/ssh --with-pid-dir=/run --with-pam --with-libedit --with-Werror + --with-default-path='/usr/local/sbin:/usr/local/bin:/usr/bin' $(vopt_if ldns --with-ldns=$XBPS_CROSS_BASE/usr) $(vopt_if ssl --with-ssl-engine --without-openssl) $(vopt_if gssapi --with-kerberos5=$XBPS_CROSS_BASE/usr --without-kerberos5)