Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] openssh: fix default path
@ 2023-04-08  3:42 cattyhouse
  2023-04-08 16:29 ` cattyhouse
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: cattyhouse @ 2023-04-08  3:42 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 852 bytes --]

There is a new pull request by cattyhouse against master on the void-packages repository

https://github.com/cattyhouse/void-packages patch-1
https://github.com/void-linux/void-packages/pull/43338

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 user's $PATH when it is a **ssh connection**. This fixes the issue.

[ref1 : archlinux](https://github.com/archlinux/svntogit-packages/blob/0a37d1bd869f9f1e4e6f9d6f5b249510f84140f0/trunk/PKGBUILD#L79)
[ref2 : alpine linux](https://git.alpinelinux.org/aports/tree/main/openssh/APKBUILD#n116)

A patch file from https://github.com/void-linux/void-packages/pull/43338.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-patch-1-43338.patch --]
[-- Type: text/x-diff, Size: 1420 bytes --]

From dd3f285f3c07a2c716764fab2c1ca994b39c0827 Mon Sep 17 00:00:00 2001
From: Justin <cattyhouse@users.noreply.github.com>
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)

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2023-04-27 12:57 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-08  3:42 [PR PATCH] openssh: fix default path cattyhouse
2023-04-08 16:29 ` cattyhouse
2023-04-08 16:47 ` [PR PATCH] [Updated] " cattyhouse
2023-04-08 17:02 ` cattyhouse
2023-04-10  2:24 ` abenson
2023-04-10  2:49 ` cattyhouse
2023-04-10  2:55 ` abenson
2023-04-10  3:04 ` cattyhouse
2023-04-27 12:57 ` [PR PATCH] [Closed]: " cattyhouse

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).