git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd7631c
)
s3-utils/net_rpc_printer.c: print more info on write error
author
Björn Baumbach
<bb@sernet.de>
Fri, 22 Jul 2011 11:44:49 +0000
(13:44 +0200)
committer
Stefan Metzmacher
<metze@samba.org>
Sat, 23 Jul 2011 07:18:54 +0000
(09:18 +0200)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
source3/utils/net_rpc_printer.c
patch
|
blob
|
history
diff --git
a/source3/utils/net_rpc_printer.c
b/source3/utils/net_rpc_printer.c
index a8221d093159646f196de1c28da857cdc8e760f2..76509c2bc63210c1ef6f8762841ec3b4d5149936 100644
(file)
--- a/
source3/utils/net_rpc_printer.c
+++ b/
source3/utils/net_rpc_printer.c
@@
-401,8
+401,11
@@
NTSTATUS net_copy_file(struct net_context *c,
(uint8_t *)data, nread, n, NULL);
if (!NT_STATUS_IS_OK(nt_status)) {
- d_fprintf(stderr, _("Error writing file: %s\n"),
- nt_errstr(nt_status));
+ d_fprintf(stderr,
+ _("Error writing file: [\\\\%s\%s%s]: %s\n"),
+ cli_state_remote_name(cli_share_dst),
+ cli_share_dst->share,
+ dst_name, nt_errstr(nt_status));
goto out;
}