1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-20 08:23:50 +03:00

r24969: Fwd port "open" patch

This commit is contained in:
Simo Sorce
2007-09-05 12:53:56 +00:00
committed by Gerald (Jerry) Carter
parent 5d94c3dab2
commit 113d62682a
3 changed files with 6 additions and 6 deletions

View File

@@ -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 */