diff options
Diffstat (limited to 'source/client/smbspool.c')
-rw-r--r-- | source/client/smbspool.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/source/client/smbspool.c b/source/client/smbspool.c index b1c17a26fcd..9b87c93aa56 100644 --- a/source/client/smbspool.c +++ b/source/client/smbspool.c @@ -226,12 +226,12 @@ static int smb_print(struct cli_state *, char *, FILE *); { if (getenv("CLASS") == NULL) { - fprintf(stderr, "ERROR: Unable to connect to SAMBA host, will retry in 60 seconds..."); - sleep (60); + fprintf(stderr, "ERROR: Unable to connect to CIFS host, will retry in 60 seconds..."); + sleep (60); /* should just waiting and retrying fix authentication ??? */ } else { - fprintf(stderr, "ERROR: Unable to connect to SAMBA host, trying next printer..."); + fprintf(stderr, "ERROR: Unable to connect to CIFS host, trying next printer..."); return (1); } } @@ -335,8 +335,10 @@ char * get_ticket_cache( uid_t uid ) if ( ticket_file == NULL ) { +#ifdef DEVELOPER /* no ticket cache found */ fprintf(stderr, "ERROR: No ticket cache found for userid=%d\n", uid); +#endif return NULL; } @@ -425,10 +427,10 @@ static struct cli_state return NULL; } - if (!cli_send_tconX(cli, share, "?????",password, strlen(password)+1)) + if (!cli_send_tconX(cli, share, "?????", password, strlen(password)+1)) { + fprintf(stderr, "ERROR: Tree connect failed (%s)\n", cli_errstr(cli)); cli_shutdown(cli); - fprintf(stderr, "ERROR: Tree connect failed\n" ); return NULL; } |