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/include/includes.h | 3 --- source3/lib/ufc.c | 2 +- source3/utils/torture.c | 4 ++++ 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/source3/include/includes.h b/source3/include/includes.h index 6572b583e2..cada77e732 100644 --- a/source3/include/includes.h +++ b/source3/include/includes.h @@ -214,9 +214,6 @@ Here come some platform specific sections #include #include #include -#ifndef NO_ASMSIGNALH -#include -#endif #ifdef GLIBC2 #define _LINUX_C_LIB_VERSION_MAJOR 6 #include diff --git a/source3/lib/ufc.c b/source3/lib/ufc.c index 0fa5cfd3a0..3330111c2f 100644 --- a/source3/lib/ufc.c +++ b/source3/lib/ufc.c @@ -660,7 +660,7 @@ static char *output_conversion(v1, v2, salt) * UNIX crypt function */ -ufc_long *_ufc_doit(ufc_long , ufc_long, ufc_long, ufc_long, ufc_long); +static ufc_long *_ufc_doit(ufc_long , ufc_long, ufc_long, ufc_long, ufc_long); char *ufc_crypt(char *key,char *salt) { ufc_long *s; 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