From 2db96e3047400be594e7c5ebf7d6fcedb77f6907 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 13 Nov 1998 03:37:01 +0000 Subject: fixes for OSF1 compilation (This used to be commit 5be3c37f50eac35cad3eadf0d24e7a4ee04c075e) --- source3/smbwrapper/smbw.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source3/smbwrapper/smbw.c') 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; -- cgit