summaryrefslogtreecommitdiff
path: root/source3/libsmb/libsmbclient.c
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2007-09-05 12:53:56 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:30:30 -0500
commit274e35f36e55ff215cef26d44d35627cb9c97924 (patch)
tree53756643c4b614f0fc50ddfacb05a9e25f41cc27 /source3/libsmb/libsmbclient.c
parent3edc4c6f660105a979b8ba0876e68bba0d49fa4e (diff)
downloadsamba-274e35f36e55ff215cef26d44d35627cb9c97924.tar.gz
samba-274e35f36e55ff215cef26d44d35627cb9c97924.tar.bz2
samba-274e35f36e55ff215cef26d44d35627cb9c97924.zip
r24969: Fwd port "open" patch
(This used to be commit 113d62682ae8b045ff0132a743a32f3bc4856d54)
Diffstat (limited to 'source3/libsmb/libsmbclient.c')
-rw-r--r--source3/libsmb/libsmbclient.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/libsmb/libsmbclient.c b/source3/libsmb/libsmbclient.c
index f903f37d14..b6b4119ff4 100644
--- a/source3/libsmb/libsmbclient.c
+++ b/source3/libsmb/libsmbclient.c
@@ -5971,7 +5971,7 @@ smbc_open_print_job_ctx(SMBCCTX *context,
/* What if the path is empty, or the file exists? */
- return context->open(context, fname, O_WRONLY, 666);
+ return (context->open)(context, fname, O_WRONLY, 666);
}
@@ -6012,7 +6012,7 @@ smbc_print_file_ctx(SMBCCTX *c_file,
/* Try to open the file for reading ... */
- if ((long)(fid1 = c_file->open(c_file, fname, O_RDONLY, 0666)) < 0) {
+ if ((long)(fid1 = (c_file->open)(c_file, fname, O_RDONLY, 0666)) < 0) {
DEBUG(3, ("Error, fname=%s, errno=%i\n", fname, errno));
return -1; /* smbc_open sets errno */