]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
Use /usr/bin/xp4g/id if necessary.
authorDarren Tucker <dtucker@dtucker.net>
Sat, 4 Apr 2020 22:43:57 +0000 (08:43 +1000)
committerDarren Tucker <dtucker@dtucker.net>
Sat, 4 Apr 2020 22:43:57 +0000 (08:43 +1000)
Solaris' native "id" doesn't support the options we use but the one
in /usr/bin/xp4g does, so use that instead.

regress/percent.sh

index a09f1612424e38beb75820d850773cd18430cf1d..566700ea44a00d357f0e01e0c50824593d480422 100644 (file)
@@ -3,6 +3,11 @@
 
 tid="percent expansions"
 
+if [ -x "/usr/xpg4/bin/id" ]; then
+       PATH=/usr/xpg4/bin:$PATH
+       export PATH
+fi
+
 USER=`id -u -n`
 USERID=`id -u`
 HOST=`hostname | cut -f1 -d.`