diff options
author | Andrew Tridgell <tridge@samba.org> | 1998-10-05 02:55:53 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1998-10-05 02:55:53 +0000 |
commit | af58bf2ff8ddbf974dbafa36cf1b679226371e09 (patch) | |
tree | e9ee23ce708251f226e5f3dd3e3da776e30e56b6 /source/param | |
parent | f1d82e02ff7f2201de5fb13af4cadec648765017 (diff) | |
download | samba-af58bf2ff8ddbf974dbafa36cf1b679226371e09.tar.gz samba-af58bf2ff8ddbf974dbafa36cf1b679226371e09.tar.xz samba-af58bf2ff8ddbf974dbafa36cf1b679226371e09.zip |
removed requirement of having a smb.conf for smbwrapper to work.
Diffstat (limited to 'source/param')
-rw-r--r-- | source/param/params.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/param/params.c b/source/param/params.c index 2a0a253f208..2f54b721317 100644 --- a/source/param/params.c +++ b/source/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)) ); } |