diff options
Diffstat (limited to 'source/smbwrapper')
-rw-r--r-- | source/smbwrapper/smbw.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/smbwrapper/smbw.c b/source/smbwrapper/smbw.c index 392ca05bfb4..2dcf4cc588d 100644 --- a/source/smbwrapper/smbw.c +++ b/source/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; } /***************************************************** |