The Samba-Bugzilla – Attachment 4712 Details for
Bug 6740
Test suite fails to run on QNX because whoami doesn't exist
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Use the method used by build_env.sh to discover the user name
0001-Use-the-method-used-by-build_env.sh-to-discover-the-.patch (text/plain), 1.04 KB, created by
Matt Kraai (mail address dead)
on 2009-09-17 09:23:58 UTC
(
hide
)
Description:
Use the method used by build_env.sh to discover the user name
Filename:
MIME Type:
Creator:
Matt Kraai (mail address dead)
Created:
2009-09-17 09:23:58 UTC
Size:
1.04 KB
patch
obsolete
>From 3b257fc44a2daf7658e574a457d160dda85d1b87 Mon Sep 17 00:00:00 2001 >From: Matt Kraai <mkraai@beckman.com> >Date: Thu, 17 Sep 2009 07:07:42 -0700 >Subject: [PATCH] Use the method used by build_env.sh to discover the user name. > >--- > source3/script/tests/selftest.sh | 10 +++++++++- > 1 files changed, 9 insertions(+), 1 deletions(-) > >diff --git a/source3/script/tests/selftest.sh b/source3/script/tests/selftest.sh >index ae856ca..43e7bf1 100755 >--- a/source3/script/tests/selftest.sh >+++ b/source3/script/tests/selftest.sh >@@ -57,7 +57,15 @@ export TORTURE_MAXTIME > WORKGROUP=SAMBA-TEST > SERVER=localhost2 > SERVER_IP=127.0.0.2 >-USERNAME=`PATH=/usr/ucb:$PATH whoami` >+if [ ! "x$USER" = "x" ]; then >+ USERNAME=$USER >+else >+ if [ ! "x$LOGNAME" = "x" ]; then >+ USERNAME=$LOGNAME >+ else >+ USERNAME=`PATH=/usr/ucb:$PATH whoami || id -un` >+ fi >+fi > USERID=`PATH=/usr/ucb:$PATH id | cut -d ' ' -f1 | sed -e 's/uid=\([0-9]*\).*/\1/g'` > GROUPID=`PATH=/usr/ucb:$PATH id | cut -d ' ' -f2 | sed -e 's/gid=\([0-9]*\).*/\1/g'` > PASSWORD=test >-- >1.6.4.2 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 6740
: 4712