>>>>> On Fri, 3 Mar 2006 14:35:42 +0100, Kern Sibbald <[EMAIL PROTECTED]> said: > > On Thursday 02 March 2006 22:29, Martin Simmons wrote: > > >>>>> On Thu, 2 Mar 2006 21:11:01 +0100, "Florian Daniel Otel" > > >>>>> <[EMAIL PROTECTED]> said: > > > > > > On 3/2/06, Martin Simmons <[EMAIL PROTECTED]> wrote: > > > > Cygwin shouldn't be involved here. I know that Kern uses Cygwin to > > > > build the fd on Windows, but it can be done from DOS too and the > > > > bacula-fd.exe shouldn't depend on Cygwin's dll (if yours does, then > > > > that could explain things...). > > > > > > A quick perusal of the manual and a quick look in the source code > > > suggest you might be right. Still, the error codes and the > > > "different" behaviour of the code under Windows tend to suggest > > > otherwise. Even still, it is a moot point since it doesn't solve the > > > problem anyway. > > > > In fact, I think it is the direct use of the Windows API that prevents > > accurate error reporting, because the code assumes errno contains the error > > code. > > This was indeed the case with earlier versions of Bacula, but with more > recent > versions (sometime during 1.36 if I remember right), the Bacula code should > *know* what is a Unix errno and what is a Windows error code. If it is > messing up on Windows error statuses, I would like to know. It is rather > easy to "forget" to set the Win32 error status correctly, so this kind of > problem is quite possible.
Well, every use of errno is likely to be bogus :-) The problem here is the code in bnet_open(), which uses errno directly with save_errno. __Martin ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users