*query_host = 0;
*base_directory = 0;
- setup_logging(argv[0],True);
+ setup_logging(argv[0],DEBUG_STDOUT);
mem_ctx = talloc_init("client.c/main");
if (!mem_ctx) {
d_printf("\nclient.c: Not enough memory\n");
/* here we are no longer interactive */
set_remote_machine_name("smbmount"); /* sneaky ... */
- setup_logging("mount.smbfs", False);
+ setup_logging("mount.smbfs", DEBUG_STDERR);
reopen_logs();
DEBUG(0, ("mount.smbfs: entering daemon mode for service %s, pid=%d\n", the_service, sys_getpid()));
DEBUGLEVEL = 1;
/* here we are interactive, even if run from autofs */
- setup_logging("mount.smbfs",True);
+ setup_logging("mount.smbfs",DEBUG_STDERR);
#if 0 /* JRA - Urban says not needed ? */
/* CLI_FORCE_ASCII=false makes smbmount negotiate unicode. The default
* Setup the SAMBA server state...
*/
- setup_logging("smbspool", True);
+ setup_logging("smbspool", DEBUG_STDOUT);
in_client = True; /* Make sure that we tell lp_load we are */
NTSTATUS status;
if (hard_link) {
- parms.generic.level = SMB_SFILEINFO_UNIX_HLINK;
+ parms.generic.level = RAW_SFILEINFO_UNIX_HLINK;
parms.unix_hlink.file.fname = fname_src;
parms.unix_hlink.in.link_dest = fname_dst;
} else {
- parms.generic.level = SMB_SFILEINFO_UNIX_LINK;
+ parms.generic.level = RAW_SFILEINFO_UNIX_LINK;
parms.unix_link.file.fname = fname_src;
parms.unix_link.in.link_dest = fname_dst;
}
char *mask;
int ff_eos = 0, i, ff_searchcount;
int ff_dir_handle=0;
- int level;
+ enum search_level level;
/* initialize state for search */
state.dirlist = NULL;
case RAW_TCON_TCONX:
ZERO_STRUCT(parms->tconx.out);
- CLI_CHECK_MIN_WCT(req, 0); /* this depends on the protocol level */
parms->tconx.out.cnum = SVAL(req->in.hdr, HDR_TID);
if (req->in.wct >= 4) {
parms->tconx.out.options = SVAL(req->in.vwv, VWV(3));
mem_ctx = talloc_init("tcon");
if (!mem_ctx) {
- cli_tree_close(tree);
return NT_STATUS_NO_MEMORY;
}
case RAW_FILEINFO_STREAM_INFO:
case RAW_FILEINFO_STREAM_INFORMATION:
- FINFO_CHECK_MIN_SIZE(0);
ofs = 0;
parms->stream_info.out.num_streams = 0;
parms->stream_info.out.streams = NULL;
return NT_STATUS_OK;
case RAW_FILEINFO_UNIX_LINK:
- FINFO_CHECK_MIN_SIZE(0);
cli_blob_pull_string(session, mem_ctx, blob,
&parms->unix_link_info.out.link_dest, 0, 4, STR_UNICODE);
return NT_STATUS_OK;
#include "includes.h"
static const struct {
- int prot;
+ enum protocol_types prot;
const char *name;
} prots[] = {
{PROTOCOL_CORE,"PC NETWORK PROGRAM 1.0"},
exit(1);
}
- setup_logging( argv[0], log_stdout );
+ setup_logging( argv[0], log_stdout?DEBUG_STDOUT : DEBUG_FILE );
reopen_logs();
snprintf(logfile, sizeof(logfile), "%s/log.winbindd", dyn_LOGFILEBASE);
lp_set_logfile(logfile);
- setup_logging("winbindd", log_stdout);
+ setup_logging("winbindd", log_stdout?DEBUG_STDOUT:DEBUG_FILE);
reopen_logs();
DEBUG(1, ("winbindd version %s started.\n", VERSION ) );
AllowDebugChange = False;
TimeInit();
- setup_logging("nss_wins",False);
+ setup_logging("nss_wins",DEBUG_FILE);
lp_load(dyn_CONFIGFILE,True,False,False);
load_interfaces();
}
extern BOOL in_client;
/* Samba initialization. */
- setup_logging( "pam_smbpass", False );
+ setup_logging( "pam_smbpass", DEBUG_FILE);
in_client = True;
ctrl = set_ctrl( flags, argc, argv );
/* Samba initialization. */
- setup_logging("pam_smbpass",False);
+ setup_logging("pam_smbpass",DEBUG_FILE);
in_client = True;
ctrl = set_ctrl(flags, argc, argv);
NTSTATUS nt_status;
/* Samba initialization. */
- setup_logging( "pam_smbpass", False );
+ setup_logging( "pam_smbpass", DEBUG_FILE );
in_client = True;
ctrl = set_ctrl(flags, argc, argv);
}
if (interactive)
- setup_logging("spoolss", True);
+ setup_logging("spoolss", DEBUG_STDOUT);
if (logfilename) {
lp_set_logfile(logfilename);
- setup_logging(logfilename, False);
+ setup_logging(logfilename, DEBUG_FILE );
reopen_logs();
}
py_samba_init();
- setup_logging("lsa", True);
+ setup_logging("lsa", DEBUG_STDOUT);
DEBUGLEVEL = 10;
}
py_samba_init();
- setup_logging("samr", True);
+ setup_logging("samr", DEBUG_STDOUT);
DEBUGLEVEL = 10;
}
py_samba_init();
- setup_logging("smb", True);
+ setup_logging("smb", DEBUG_STDOUT);
DEBUGLEVEL = 10;
}
DEBUG(0,("ERROR: Can't log to stdout (-S) unless daemon is in foreground (-F) or interactive (-i)\n"));
exit(1);
}
- setup_logging(argv[0], log_stdout);
+ setup_logging(argv[0], log_stdout?DEBUG_STDOUT:DEBUG_FILE);
fault_setup((void (*)(void *))exit_server);
smbw_busy++;
DEBUGLEVEL = 0;
- setup_logging("smbsh",True);
+ setup_logging("smbsh", DEBUG_STDOUT);
dbf = x_stderr;
exit(1);
}
- setup_logging(argv[0],True);
+ setup_logging(argv[0], DEBUG_STDOUT);
for (i=0;i<NSERVERS;i++) {
const char *share = argv[1+i];
break;
case 'd':
DEBUGLEVEL = atoi(optarg);
- setup_logging(NULL,True);
+ setup_logging(NULL, DEBUG_STDOUT);
break;
case 's':
options.seed = atoi(optarg);
exit(1);
}
- setup_logging(argv[0],True);
+ setup_logging(argv[0], DEBUG_STDOUT);
for (server=0;server<NSERVERS;server++) {
share[server] = argv[1+server];
all_string_sub(share1,"/","\\",0);
all_string_sub(share2,"/","\\",0);
- setup_logging(argv[0],True);
+ setup_logging(argv[0], DEBUG_STDOUT);
argc -= 4;
argv += 4;
all_string_sub(share,"/","\\",0);
- setup_logging(argv[0],True);
+ setup_logging(argv[0], DEBUG_STDOUT);
argc -= 1;
argv += 1;
int i, n;
char buf[12];
- setup_logging(argv[0],True);
+ setup_logging(argv[0], DEBUG_STDOUT);
lp_load(dyn_CONFIGFILE,False,False,False);
smb_cli->nt_pipe_fnum = 0xffff;
- setup_logging(pname, True);
+ setup_logging(pname, DEBUG_STDOUT);
password[0] = 0;
break;
case 'd':
lp_set_cmdline("debug level", optarg);
- setup_logging(NULL,True);
+ setup_logging(NULL, DEBUG_STDOUT);
break;
case 'O':
lp_set_cmdline("socket options", optarg);
*lookup = 0;
- setup_logging(argv[0],True);
+ setup_logging(argv[0], DEBUG_STDOUT);
while ((opt = getopt(argc, argv, "d:fB:U:i:s:SMrhART")) != EOF)
switch (opt)
{0,0,0,0}
};
- setup_logging("pdbedit", True);
+ setup_logging("pdbedit", DEBUG_STDOUT);
pc = poptGetContext(NULL, argc, (const char **) argv, long_options,
POPT_CONTEXT_KEEP_FIRST);
ZERO_STRUCT(rpc_stub);
- setup_logging("", True);
+ setup_logging("", DEBUG_STDOUT);
DEBUGLEVEL=10;
ctx=talloc_init("main");
exit(EXIT_PARSE_ERROR);
}
- setup_logging(argv[0],True);
+ setup_logging(argv[0], DEBUG_STDOUT);
share = argv[1];
pstrcpy(filename, argv[2]);
AllowDebugChange = False;
DEBUGLEVEL = 0;
- setup_logging(argv[0],True);
+ setup_logging(argv[0], DEBUG_STDOUT);
if (argc < 2) usage(True);
char *desthost;
pstring configfile;
- setup_logging(argv[0],True);
+ setup_logging(argv[0], DEBUG_STDOUT);
pstrcpy(configfile,dyn_CONFIGFILE);
enum SID_NAME_USE sid_type;
uint32 rid = -1;
- setup_logging("groupedit", True);
+ setup_logging("groupedit", DEBUG_STDOUT);
if (argc < 2) {
usage();
local_flags = process_options(argc, argv, local_flags);
- setup_logging("smbpasswd", True);
+ setup_logging("smbpasswd", DEBUG_STDOUT);
/*
* Set the machine NETBIOS name if not already
dbf = x_stderr;
- setup_logging(argv[0],True);
+ setup_logging(argv[0], DEBUG_STDOUT);
lp_load(dyn_CONFIGFILE,True,False,False);
load_interfaces();
POPT_TABLEEND
};
- setup_logging(argv[0],True);
+ setup_logging(argv[0], DEBUG_STDOUT);
dbf = x_stderr;
while((opt = poptGetNextOpt(pc)) != -1);
- setup_logging(poptGetArg(pc), True);
+ setup_logging(poptGetArg(pc), DEBUG_STDOUT);
if (poptPeekArg(pc))
config_file = poptGetArg(pc);
{
const char *pszTemp;
- setup_logging(argv[0],True);
+ setup_logging(argv[0], DEBUG_STDOUT);
if (argc < 2 || argc > 3)
printf("Usage: testprns printername [printcapfile]\n");
}
}
- setup_logging(argv[0],False);
+ setup_logging(argv[0],DEBUG_FILE);
load_config(True);
iNumNonAutoPrintServices = lp_numservices();
load_printers();
set_remote_machine_name("wrepld");
- setup_logging(argv[0],log_stdout);
+ setup_logging(argv[0],log_stdout?DEBUG_STDOUT:DEBUG_FILE);
/* we want to re-seed early to prevent time delays causing
client problems at a later date. (tridge) */