summaryrefslogtreecommitdiffstats
path: root/source/smbwrapper/smbw.c
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
commit5be3c37f50eac35cad3eadf0d24e7a4ee04c075e (patch)
treebeefce5963570b2c661b573c099db1927dd13f5f /source/smbwrapper/smbw.c
parentb62f008974c96e0302d6c146cf49bc2045bef005 (diff)
downloadsamba-5be3c37f50eac35cad3eadf0d24e7a4ee04c075e.tar.gz
samba-5be3c37f50eac35cad3eadf0d24e7a4ee04c075e.tar.xz
samba-5be3c37f50eac35cad3eadf0d24e7a4ee04c075e.zip
fixes for OSF1 compilation
Diffstat (limited to 'source/smbwrapper/smbw.c')
-rw-r--r--source/smbwrapper/smbw.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/smbwrapper/smbw.c b/source/smbwrapper/smbw.c
index 42979bcf004..7c857652344 100644
--- a/source/smbwrapper/smbw.c
+++ b/source/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;