summaryrefslogtreecommitdiffstats
path: root/source/smbwrapper
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-10-07 11:07:24 +0000
committerAndrew Tridgell <tridge@samba.org>1998-10-07 11:07:24 +0000
commitf374706cbf654bdb33df3074cb1a8101af0201eb (patch)
treec0a89fe2449d7d7a1f3275e051b5c51aa3d43431 /source/smbwrapper
parent42765a654f9fe45160760e61a80d789279ee6198 (diff)
downloadsamba-f374706cbf654bdb33df3074cb1a8101af0201eb.tar.gz
samba-f374706cbf654bdb33df3074cb1a8101af0201eb.tar.xz
samba-f374706cbf654bdb33df3074cb1a8101af0201eb.zip
restore errno after smbw initialisation
Diffstat (limited to 'source/smbwrapper')
-rw-r--r--source/smbwrapper/smbw.c5
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;
}
/*****************************************************