fix dumb perror used without errno beeing set.
authorSimo Sorce <idra@samba.org>
Sat, 15 Feb 2003 21:37:15 +0000 (21:37 +0000)
committerSimo 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

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);
       }
     }