fix dumb perror used without errno beeing set.
authorSimo Sorce <idra@samba.org>
Sat, 15 Feb 2003 21:36:28 +0000 (21:36 +0000)
committerSimo Sorce <idra@samba.org>
Sat, 15 Feb 2003 21:36:28 +0000 (21:36 +0000)
thanks to RedHat developers for the report
(This used to be commit 4a3c6c62d979707900b95e6c38b0132f522269ca)

source3/client/smbspool.c

index c42cc7b91ff63463d04d589a0998b543e53d7033..68165792da3df3f86f95284d67b0113485aa369f 100644 (file)
@@ -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);
       }
     }