From ba5086d03e3ec29e0c866d339d0283b520fc669f Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 6 Nov 1997 06:50:21 +0000 Subject: no asm/signal.h for linux as this is not portable add auto username from LOGNAME for smbtorture proto fix in ufc.c (This used to be commit f13dbdf307ccffc15a74e2ffa72da666e53a72b6) --- source3/utils/torture.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source3/utils/torture.c') diff --git a/source3/utils/torture.c b/source3/utils/torture.c index 0eb9a256fc..f3d76e0ee2 100644 --- a/source3/utils/torture.c +++ b/source3/utils/torture.c @@ -261,6 +261,10 @@ static void create_procs(int nprocs, int numops) get_myname(myname,NULL); + if (*username == 0 && getenv("LOGNAME")) { + strcpy(username,getenv("LOGNAME")); + } + argc--; argv++; -- cgit