summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1997-11-06 06:50:21 +0000
committerAndrew Tridgell <tridge@samba.org>1997-11-06 06:50:21 +0000
commitba5086d03e3ec29e0c866d339d0283b520fc669f (patch)
treea0f645c86e1d132ed302b9f8738815649155f728
parent52fa04d173a18adb52955afd9e18edd81300e009 (diff)
downloadsamba-ba5086d03e3ec29e0c866d339d0283b520fc669f.tar.gz
samba-ba5086d03e3ec29e0c866d339d0283b520fc669f.tar.bz2
samba-ba5086d03e3ec29e0c866d339d0283b520fc669f.zip
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)
-rw-r--r--source3/include/includes.h3
-rw-r--r--source3/lib/ufc.c2
-rw-r--r--source3/utils/torture.c4
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 <string.h>
#include <sys/vfs.h>
#include <netinet/in.h>
-#ifndef NO_ASMSIGNALH
-#include <asm/signal.h>
-#endif
#ifdef GLIBC2
#define _LINUX_C_LIB_VERSION_MAJOR 6
#include <termios.h>
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++;