]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:smbspool: Print the filename we failed to open
authorAndreas Schneider <asn@samba.org>
Mon, 13 May 2019 14:48:31 +0000 (16:48 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Thu, 23 May 2019 09:41:17 +0000 (09:41 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13939

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
source3/client/smbspool.c

index efbdd418fdb92944f093f20a7de89defe2d52258..ef16c2bed423b1c4b4b93fc8d2db5b9661aec357 100644 (file)
@@ -224,7 +224,9 @@ main(int argc,                      /* I - Number of command-line arguments */
 
                fp = fopen(print_file, "rb");
                if (fp == NULL) {
-                       perror("ERROR: Unable to open print file");
+                       fprintf(stderr,
+                               "ERROR: Unable to open print file: %s",
+                               print_file);
                        goto done;
                }