mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
fix dumb perror used without errno beeing set.
thanks to RedHat developers for the report (This used to be commit e257141c9b3703ef73ee312f3ec30d377e0d3293)
This commit is contained in:
parent
79613f6146
commit
07886ac856
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user