mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
fixes for OSF1 compilation
This commit is contained in:
parent
b62f008974
commit
5be3c37f50
@ -188,7 +188,7 @@ static void send_message(void)
|
||||
int l=0;
|
||||
int c;
|
||||
|
||||
ZERO_STRUCT(msg);
|
||||
ZERO_ARRAY(msg);
|
||||
|
||||
for (l=0;l<maxlen && (c=fgetc(stdin))!=EOF;l++) {
|
||||
if (c == '\n')
|
||||
|
@ -587,6 +587,7 @@ union semun {
|
||||
#endif
|
||||
|
||||
#if defined (HAVE_NETGROUP) && defined(HAVE_RPCSVC_YPCLNT_H)
|
||||
#include "rpcsvc/yp_prot.h"
|
||||
#include "rpcsvc/ypclnt.h"
|
||||
#endif
|
||||
|
||||
|
@ -702,8 +702,8 @@ void make_rpc_auth_ntlmssp_resp(RPC_AUTH_NTLMSSP_RESP *rsp,
|
||||
|
||||
rsp->neg_flags = neg_flags;
|
||||
|
||||
memcpy(&rsp->lm_resp, lm_resp, 24);
|
||||
memcpy(&rsp->nt_resp, nt_resp, 24);
|
||||
memcpy(rsp->lm_resp, lm_resp, 24);
|
||||
memcpy(rsp->nt_resp, nt_resp, 24);
|
||||
|
||||
if (IS_BITS_SET_ALL(neg_flags, NTLMSSP_NEGOTIATE_UNICODE))
|
||||
{
|
||||
|
@ -341,6 +341,12 @@ int smbw_path(const char *path)
|
||||
char *cwd;
|
||||
int len;
|
||||
|
||||
/* this is needed to prevent recursion with the BSD malloc which
|
||||
opens /etc/malloc.conf on the first call */
|
||||
if (strncmp(path,"/etc/", 5) == 0) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
smbw_init();
|
||||
|
||||
len = strlen(smbw_prefix)-1;
|
||||
|
@ -34,12 +34,12 @@
|
||||
/* -------------------------------------------------------------------------- **
|
||||
* Constants...
|
||||
*
|
||||
* BSIZE - This internal constant is used only by dbg_test(). It is the
|
||||
* DBG_BSIZE - This internal constant is used only by dbg_test(). It is the
|
||||
* size of the read buffer. I've tested the function using a
|
||||
* BSIZE value of 2.
|
||||
* DBG_BSIZE value of 2.
|
||||
*/
|
||||
|
||||
#define BSIZE 128
|
||||
#define DBG_BSIZE 128
|
||||
|
||||
/* -------------------------------------------------------------------------- **
|
||||
* Functions...
|
||||
@ -258,14 +258,14 @@ void dbg_test( void )
|
||||
* ------------------------------------------------------------------------ **
|
||||
*/
|
||||
{
|
||||
char bufr[BSIZE];
|
||||
char bufr[DBG_BSIZE];
|
||||
int i;
|
||||
int linecount = 1;
|
||||
dbg_Token old = dbg_null,
|
||||
new = dbg_null,
|
||||
state = dbg_null;
|
||||
|
||||
while( fgets( bufr, BSIZE, stdin ) )
|
||||
while( fgets( bufr, DBG_BSIZE, stdin ) )
|
||||
{
|
||||
for( i = 0; bufr[i]; i++ )
|
||||
{
|
||||
|
@ -29,6 +29,9 @@
|
||||
* -------------------------------------------------------------------------- **
|
||||
*
|
||||
* $Log: debug2html.c,v $
|
||||
* Revision 1.4 1998/11/13 03:37:01 tridge
|
||||
* fixes for OSF1 compilation
|
||||
*
|
||||
* Revision 1.3 1998/10/28 20:33:35 crh
|
||||
* I've moved the debugparse module files into the ubiqx directory because I
|
||||
* know that 'make proto' will ignore them there. The debugparse.h header
|
||||
@ -61,7 +64,7 @@
|
||||
* The size of the read buffer.
|
||||
*/
|
||||
|
||||
#define BSIZE 1024
|
||||
#define DBG_BSIZE 1024
|
||||
|
||||
/* -------------------------------------------------------------------------- **
|
||||
* Functions...
|
||||
@ -219,7 +222,7 @@ int main( int argc, char *argv[] )
|
||||
{
|
||||
int i;
|
||||
int len;
|
||||
char bufr[BSIZE];
|
||||
char bufr[DBG_BSIZE];
|
||||
dbg_Token old = dbg_null,
|
||||
new = dbg_null,
|
||||
state = dbg_null,
|
||||
@ -230,7 +233,7 @@ int main( int argc, char *argv[] )
|
||||
(void)printf( " <TITLE>Samba Debug Output</TITLE>\n</HEAD>\n\n<BODY>\n" );
|
||||
|
||||
while( (!feof( stdin ))
|
||||
&& ((len = fread( bufr, 1, BSIZE, stdin )) > 0) )
|
||||
&& ((len = fread( bufr, 1, DBG_BSIZE, stdin )) > 0) )
|
||||
{
|
||||
for( i = 0; i < len; i++ )
|
||||
{
|
||||
|
@ -153,7 +153,7 @@ static char *stdin_new_passwd(void)
|
||||
static fstring new_passwd;
|
||||
size_t len;
|
||||
|
||||
ZERO_STRUCT(new_passwd);
|
||||
ZERO_ARRAY(new_passwd);
|
||||
|
||||
/*
|
||||
* if no error is reported from fgets() and string at least contains
|
||||
@ -194,7 +194,7 @@ static char *prompt_for_new_password(BOOL stdin_get)
|
||||
char *p;
|
||||
fstring new_passwd;
|
||||
|
||||
ZERO_STRUCT(new_passwd);
|
||||
ZERO_ARRAY(new_passwd);
|
||||
|
||||
p = get_pass("New SMB password:", stdin_get);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user