1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-27 22:50:26 +03:00

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)
This commit is contained in:
Andrew Tridgell 1997-11-06 06:50:21 +00:00
parent 52fa04d173
commit ba5086d03e
3 changed files with 5 additions and 4 deletions

View File

@ -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>

View File

@ -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;

View File

@ -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++;