summaryrefslogtreecommitdiff
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
commitbdec84db60461ce6152b1fc4062cb55c329d2821 (patch)
tree43e80e1225ab2e4a5f20a9682f68efa08826e3c7
parentb818ce63596ecc4fa8435237851c0c732067ac62 (diff)
downloadsamba-bdec84db60461ce6152b1fc4062cb55c329d2821.tar.gz
samba-bdec84db60461ce6152b1fc4062cb55c329d2821.tar.bz2
samba-bdec84db60461ce6152b1fc4062cb55c329d2821.zip
restore errno after smbw initialisation
(This used to be commit f374706cbf654bdb33df3074cb1a8101af0201eb)
-rw-r--r--source3/smbwrapper/smbw.c5
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;
}
/*****************************************************