diff options
author | Andreas Schneider <asn@samba.org> | 2019-05-13 16:48:31 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2019-05-23 09:41:17 +0000 |
commit | 281274572bcc3125fe6026a01ef7bf7ef584a0dd (patch) | |
tree | f41c1972692dece9d8a423cc197a93dbdbb52426 /source3/client | |
parent | 6bbdf69e406916107400e2cabdbc831e2a2bbee3 (diff) | |
download | samba-281274572bcc3125fe6026a01ef7bf7ef584a0dd.tar.gz |
s3:smbspool: Print the filename we failed to open
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>
Diffstat (limited to 'source3/client')
-rw-r--r-- | source3/client/smbspool.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/client/smbspool.c b/source3/client/smbspool.c index efbdd418fdb..ef16c2bed42 100644 --- a/source3/client/smbspool.c +++ b/source3/client/smbspool.c @@ -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; } |