From ca3d1b9bf01a56755a5c248a808ffafdce3e1a82 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 5 Oct 1998 02:55:53 +0000 Subject: removed requirement of having a smb.conf for smbwrapper to work. (This used to be commit af58bf2ff8ddbf974dbafa36cf1b679226371e09) --- source3/param/params.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source3/param/params.c') diff --git a/source3/param/params.c b/source3/param/params.c index 2a0a253f20..2f54b72131 100644 --- a/source3/param/params.c +++ b/source3/param/params.c @@ -490,17 +490,19 @@ static FILE *OpenConfFile( char *FileName ) { FILE *OpenedFile; char *func = "params.c:OpenConfFile() -"; + extern BOOL in_client; + int lvl = in_client?1:0; if( NULL == FileName || 0 == *FileName ) { - DEBUG( 0, ("%s No configuration filename specified.\n", func) ); + DEBUG( lvl, ("%s No configuration filename specified.\n", func) ); return( NULL ); } OpenedFile = fopen( FileName, "r" ); if( NULL == OpenedFile ) { - DEBUG( 0, + DEBUG( lvl, ("%s Unable to open configuration file \"%s\":\n\t%s\n", func, FileName, strerror(errno)) ); } -- cgit