Login new debug
This commit is contained in:
20
login.c
20
login.c
@@ -23,6 +23,20 @@
|
|||||||
static uint8 script_login_name[64];
|
static uint8 script_login_name[64];
|
||||||
static uint8 script_file_server[52];
|
static uint8 script_file_server[52];
|
||||||
|
|
||||||
|
static int login_script_trace = 1;
|
||||||
|
|
||||||
|
static int try_script_trace(char *name)
|
||||||
|
{
|
||||||
|
int rc;
|
||||||
|
|
||||||
|
fprintf(stdout, "LOGIN script: trying %s\n", name);
|
||||||
|
rc = read_command_file(name);
|
||||||
|
fprintf(stdout, "LOGIN script: %s rc=%d\n", name, rc);
|
||||||
|
|
||||||
|
return(rc);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
static char **build_argv(char *buf, int bufsize, char *str);
|
static char **build_argv(char *buf, int bufsize, char *str);
|
||||||
extern int read_command_file(char *fstr);
|
extern int read_command_file(char *fstr);
|
||||||
extern int get_fs_name(int connid, char *name);
|
extern int get_fs_name(int connid, char *name);
|
||||||
@@ -378,7 +392,7 @@ static int script_execute_line(char *line)
|
|||||||
|
|
||||||
static int try_login_script_file(char *name)
|
static int try_login_script_file(char *name)
|
||||||
{
|
{
|
||||||
return(read_command_file(name));
|
return(try_script_trace(name));
|
||||||
}
|
}
|
||||||
|
|
||||||
static int run_login_script(void)
|
static int run_login_script(void)
|
||||||
@@ -653,8 +667,10 @@ int func_login(int argc, char *argv[], int mode)
|
|||||||
|
|
||||||
remove_nwpathes();
|
remove_nwpathes();
|
||||||
|
|
||||||
if (!no_script)
|
if (!no_script) {
|
||||||
|
fprintf(stdout, "LOGIN script: starting search, prgpath='%s'\n", prgpath);
|
||||||
run_login_script();
|
run_login_script();
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
(void)set_search_drive_vektor(save_drives);
|
(void)set_search_drive_vektor(save_drives);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user