[openssh-commits] [openssh] 01/02: Move xpg4 'id' handling into test-exec.sh.
git+noreply at mindrot.org
git+noreply at mindrot.org
Mon Mar 25 16:14:43 AEDT 2024
This is an automated email from the git hooks/post-receive script.
dtucker pushed a commit to branch master
in repository openssh.
commit 2d7964a03e1f50a48040ec6912c0a956df909d21
Author: Darren Tucker <dtucker at dtucker.net>
AuthorDate: Mon Mar 25 14:05:40 2024 +1100
Move xpg4 'id' handling into test-exec.sh.
Handle replacement of 'id' the same way as we do other Portable specific
replacements in test-exec.sh. This brings percent.sh back into sync
with upstream.
---
regress/percent.sh | 5 -----
regress/test-exec.sh | 8 ++++++++
2 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/regress/percent.sh b/regress/percent.sh
index 44561d41..354854f9 100644
--- a/regress/percent.sh
+++ b/regress/percent.sh
@@ -3,11 +3,6 @@
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.`
diff --git a/regress/test-exec.sh b/regress/test-exec.sh
index ad627941..f4c363d8 100644
--- a/regress/test-exec.sh
+++ b/regress/test-exec.sh
@@ -392,6 +392,7 @@ have_prog()
jot() {
awk "BEGIN { for (i = $2; i < $2 + $1; i++) { printf \"%d\n\", i } exit }"
}
+
if [ ! -x "`which rev`" ]; then
rev()
{
@@ -399,6 +400,13 @@ rev()
}
fi
+if [ -x "/usr/xpg4/bin/id" ]; then
+id()
+{
+ /usr/xpg4/bin/id
+}
+fi
+
# Check whether preprocessor symbols are defined in config.h.
config_defined ()
{
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list