diff options
author | Andrew Tridgell <tridge@samba.org> | 1998-10-07 11:07:24 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1998-10-07 11:07:24 +0000 |
commit | f374706cbf654bdb33df3074cb1a8101af0201eb (patch) | |
tree | c0a89fe2449d7d7a1f3275e051b5c51aa3d43431 | |
parent | 42765a654f9fe45160760e61a80d789279ee6198 (diff) | |
download | samba-f374706cbf654bdb33df3074cb1a8101af0201eb.tar.gz samba-f374706cbf654bdb33df3074cb1a8101af0201eb.tar.xz samba-f374706cbf654bdb33df3074cb1a8101af0201eb.zip |
restore errno after smbw initialisation
-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; } /***************************************************** |