From 07886ac8569f46aad044da870af463d08b26bc22 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Sat, 15 Feb 2003 21:37:15 +0000 Subject: fix dumb perror used without errno beeing set. thanks to RedHat developers for the report (This used to be commit e257141c9b3703ef73ee312f3ec30d377e0d3293) --- source3/client/smbspool.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/client/smbspool.c') 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); } } -- cgit