[Samba] cli_pipe: return critical error. Error was Call returnedzerobyte(EOF), hilfe!

Dragan Krnic dkrnic at lycos.com
Thu May 15 16:40:26 GMT 2003


Hi Kurt,

I've discovered another little glitch in the functon
strlen_w of lib/util_unistr.c when it tries to count
characters in an empty string. That causes the
rpcclient's "enumdrivers 3" command to segment.
A simple correction of the loop line 644:

   for(len = 0; *(src++); len++)

so that it should read like this:

   for(len = 0; src && *(src++); len++)

removes that problem too. You can read a little more
on this in 

https://bugzilla.samba.org/show_bug.cgi?id=82

Cheers
Dragan

>It's time to go back to the future, Kurt. Dump the 
>rusty ol' 2.2.7a and install the kewl new stuff. The 
>problem wasn't really so dramatic. After everything 
>went fine someone wanted to log info about what just 
>happened, boasting how it has successfully added a 
>new printer driver and of course kicks the bucket 
>because the wrapper function sys_adminlog is only 
>called once in all samba in, you guessed it,
>_spoolss_addprinterdriver at rpc_server/srv_spoolss_nt.c
>so it wasn't tested very intensively.
>It's line number 6662 which has to be commented out
>together with its continuation line 6663 and you
>have no more problems. Until the wrapper funtion is
>fixed, you may perhaps chalk up the following info
>on a blackboard:
>   Print driver name
>   Print driver OS
>   Administrator name


____________________________________________________________
Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail!
http://login.mail.lycos.com/r/referral?aid=27005



More information about the samba mailing list