1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

fix dumb perror used without errno beeing set.

thanks to RedHat developers for the report
(This used to be commit 4a3c6c62d9)
This commit is contained in:
Simo Sorce 2003-02-15 21:36:28 +00:00
parent ab39da9878
commit 584206dccf

View File

@ -205,12 +205,12 @@ static int smb_print(struct cli_state *, char *, FILE *);
{
if (getenv("CLASS") == NULL)
{
perror("ERROR: Unable to connect to SAMBA host, will retry in 60 seconds...");
fprintf(stderr, "ERROR: Unable to connect to SAMBA host, will retry in 60 seconds...");
sleep (60);
}
else
{
perror("ERROR: Unable to connect to SAMBA host, trying next printer...");
fprintf(stderr, "ERROR: Unable to connect to SAMBA host, trying next printer...");
return (1);
}
}