summaryrefslogtreecommitdiff
path: root/source3/smbwrapper
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-11-13 03:37:01 +0000
committerAndrew Tridgell <tridge@samba.org>1998-11-13 03:37:01 +0000
commit2db96e3047400be594e7c5ebf7d6fcedb77f6907 (patch)
tree4a3c3d2e2062b9aaf86d7b6ef9b827b60a6189ac /source3/smbwrapper
parent2164685b9f959814af2067aa0dcac2d1b2ac0bc5 (diff)
downloadsamba-2db96e3047400be594e7c5ebf7d6fcedb77f6907.tar.gz
samba-2db96e3047400be594e7c5ebf7d6fcedb77f6907.tar.bz2
samba-2db96e3047400be594e7c5ebf7d6fcedb77f6907.zip
fixes for OSF1 compilation
(This used to be commit 5be3c37f50eac35cad3eadf0d24e7a4ee04c075e)
Diffstat (limited to 'source3/smbwrapper')
-rw-r--r--source3/smbwrapper/smbw.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/smbwrapper/smbw.c b/source3/smbwrapper/smbw.c
index 42979bcf00..7c85765234 100644
--- a/source3/smbwrapper/smbw.c
+++ b/source3/smbwrapper/smbw.c
@@ -341,6 +341,12 @@ int smbw_path(const char *path)
char *cwd;
int len;
+ /* this is needed to prevent recursion with the BSD malloc which
+ opens /etc/malloc.conf on the first call */
+ if (strncmp(path,"/etc/", 5) == 0) {
+ return 0;
+ }
+
smbw_init();
len = strlen(smbw_prefix)-1;