diff options
author | Simo Sorce <idra@samba.org> | 2003-02-15 21:37:15 +0000 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2003-02-15 21:37:15 +0000 |
commit | 07886ac8569f46aad044da870af463d08b26bc22 (patch) | |
tree | 67eb313f4963c47ff22ab2156275dbf9cc6f175c | |
parent | 79613f6146b6cd08ca3a5460fa8ae591b11d9abd (diff) | |
download | samba-07886ac8569f46aad044da870af463d08b26bc22.tar.gz samba-07886ac8569f46aad044da870af463d08b26bc22.tar.bz2 samba-07886ac8569f46aad044da870af463d08b26bc22.zip |
fix dumb perror used without errno beeing set.
thanks to RedHat developers for the report
(This used to be commit e257141c9b3703ef73ee312f3ec30d377e0d3293)
-rw-r--r-- | source3/client/smbspool.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/client/smbspool.c b/source3/client/smbspool.c index c42cc7b91f..68165792da 100644 --- a/source3/client/smbspool.c +++ b/source3/client/smbspool.c @@ -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); } } |