diff options
-rw-r--r-- | source3/smbwrapper/smbw.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/smbwrapper/smbw.c b/source3/smbwrapper/smbw.c index 392ca05bfb..2dcf4cc588 100644 --- a/source3/smbwrapper/smbw.c +++ b/source3/smbwrapper/smbw.c @@ -48,10 +48,13 @@ void smbw_init(void) static pstring servicesf = CONFIGFILE; extern FILE *dbf; char *p; + int eno; if (initialised) return; initialised = 1; + eno = errno; + smbw_busy++; DEBUGLEVEL = 0; @@ -98,6 +101,8 @@ void smbw_init(void) smbw_busy--; set_maxfiles(); + + errno = eno; } /***************************************************** |