#endif
static struct smbcli_state *cli;
-extern BOOL in_client;
static int port = 0;
static pstring cur_dir = "\\";
static pstring cd_path = "";
pc = poptGetContext("smbclient", argc, (const char **) argv, long_options, 0);
poptSetOtherOptionHelp(pc, "[OPTIONS] service <password>");
- in_client = True; /* Make sure that we tell lp_load we are */
-
while ((opt = poptGetNextOpt(pc)) != -1) {
switch (opt) {
case 'M':
#include <asm/types.h>
#include <linux/smb_fs.h>
-extern BOOL in_client;
-
static pstring credentials;
static pstring my_netbios_name;
static pstring password;
setenv("CLI_FORCE_ASCII", "true", 1);
#endif
- in_client = True; /* Make sure that we tell lp_load we are */
-
if (getenv("USER")) {
pstrcpy(username,getenv("USER"));
#include "includes.h"
-/*
- * Globals...
- */
-
-extern BOOL in_client; /* Boolean for client library */
-
-
/*
* Local functions...
*/
setup_logging("smbspool", DEBUG_STDOUT);
- in_client = True; /* Make sure that we tell lp_load we are */
-
if (!lp_load(dyn_CONFIGFILE))
{
fprintf(stderr, "ERROR: Can't load %s - run testparm to debug it\n", dyn_CONFIGFILE);
#include "dlinklist.h"
#include "param/loadparm.h"
-BOOL in_client = False; /* Not in the client by default */
static BOOL bLoaded = False;
#ifndef GLOBAL_NAME
bLoaded = True;
- /* Now we check bWINSsupport and set szWINSserver to 127.0.0.1 */
- /* if bWINSsupport is true and we are in the client */
- if (in_client && Globals.bWINSsupport) {
+ if (Globals.bWINSsupport) {
lp_do_parameter(-1, "wins server", "127.0.0.1");
}
*/
{
const char *func = "params.c:OpenConfFile() -";
- extern BOOL in_client;
- int lvl = in_client?1:0;
myFILE *ret;
ret = malloc_p(myFILE);
ret->buf = file_load(FileName, &ret->size);
if( NULL == ret->buf )
{
- DEBUG( lvl,
+ DEBUG( 1,
("%s Unable to open configuration file \"%s\":\n\t%s\n",
func, FileName, strerror(errno)) );
SAFE_FREE(ret);