summaryrefslogtreecommitdiff
path: root/source3/client
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2003-02-15 21:36:28 +0000
committerSimo Sorce <idra@samba.org>2003-02-15 21:36:28 +0000
commit584206dccfd61ec49c729291b6f1874b4e38d2be (patch)
tree2b58cbfb0d31ff4533db365792d1bee7fc7cef2d /source3/client
parentab39da9878815d584bc716f29e87ec9da165c5c9 (diff)
downloadsamba-584206dccfd61ec49c729291b6f1874b4e38d2be.tar.gz
samba-584206dccfd61ec49c729291b6f1874b4e38d2be.tar.bz2
samba-584206dccfd61ec49c729291b6f1874b4e38d2be.zip
fix dumb perror used without errno beeing set.
thanks to RedHat developers for the report (This used to be commit 4a3c6c62d979707900b95e6c38b0132f522269ca)
Diffstat (limited to 'source3/client')
-rw-r--r--source3/client/smbspool.c4
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);
}
}