Compiler warnings and receive_smb: bug?

Ignacio Coupeau icoupeau at unav.es
Thu Nov 12 10:22:12 GMT 1998


I look this message in the log (100) in Linux RedHat 5.1 Intel wit the
latest CVS version I get (981112,10:30WET):
-------------------------------
[1998/11/12 10:53:31, 6] lib/util_sock.c:write_socket(188)
  write_socket(6,39) wrote 39
[1998/11/12 10:53:31, 10] lib/util_sock.c:receive_smb(493)
  receive_smb: length < 0!
	    ^^^^^^^^^^^^^^^^
[1998/11/12 10:53:31, 3] smbd/process.c:smbd_process(806)
  end of file from client
-------------------------------

When compile the CVS I get two warnings:

------------------------------------
Compiling lib/util_str.c
lib/util_str.c: In function `strncpyn':
lib/util_str.c:845: warning: passing arg 1 discards `const' from pointer
target type
Compiling lib/util_sid.c
...
Compiling lib/util_str.c with -fpic
lib/util_str.c: In function `strncpyn':
lib/util_str.c:845: warning: passing arg 1 discards `const' from pointer
target type
Compiling lib/util_sid.c with -fpic
------------------------------------

I don't know if the "receive_smb: length < 0!" is related to strncpyn...

____________________________________________________
Ignacio Coupeau, Ph.D.     e-mail: icoupeau at unav.es
CTI, Director              fax:    +48 425619
University of Navarra      voice:  +48 425600
Pamplona, SPAIN            http://www.unav.es/cti/


More information about the samba-ntdom mailing list