git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
79613f6
)
fix dumb perror used without errno beeing set.
author
Simo Sorce
<idra@samba.org>
Sat, 15 Feb 2003 21:37:15 +0000
(21:37 +0000)
committer
Simo Sorce
<idra@samba.org>
Sat, 15 Feb 2003 21:37:15 +0000
(21:37 +0000)
thanks to RedHat developers for the report
(This used to be commit
e257141c9b3703ef73ee312f3ec30d377e0d3293
)
source3/client/smbspool.c
patch
|
blob
|
history
diff --git
a/source3/client/smbspool.c
b/source3/client/smbspool.c
index c42cc7b91ff63463d04d589a0998b543e53d7033..68165792da3df3f86f95284d67b0113485aa369f 100644
(file)
--- 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);
}
}