int l=0;
int c;
- ZERO_STRUCT(msg);
+ ZERO_ARRAY(msg);
for (l=0;l<maxlen && (c=fgetc(stdin))!=EOF;l++) {
if (c == '\n')
#endif
#if defined (HAVE_NETGROUP) && defined(HAVE_RPCSVC_YPCLNT_H)
+#include "rpcsvc/yp_prot.h"
#include "rpcsvc/ypclnt.h"
#endif
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))
{
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;
/* -------------------------------------------------------------------------- **
* 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...
* ------------------------------------------------------------------------ **
*/
{
- 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++ )
{
* -------------------------------------------------------------------------- **
*
* $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
* The size of the read buffer.
*/
-#define BSIZE 1024
+#define DBG_BSIZE 1024
/* -------------------------------------------------------------------------- **
* Functions...
{
int i;
int len;
- char bufr[BSIZE];
+ char bufr[DBG_BSIZE];
dbg_Token old = dbg_null,
new = dbg_null,
state = dbg_null,
(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++ )
{
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
char *p;
fstring new_passwd;
- ZERO_STRUCT(new_passwd);
+ ZERO_ARRAY(new_passwd);
p = get_pass("New SMB password:", stdin_get);