git.samba.org
/
obnox
/
samba
/
samba-obnox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e107c6a
)
pysmbd: Remember to close files after setting the NT ACL
author
Andrew Bartlett
<abartlet@samba.org>
Thu, 25 Oct 2012 23:07:02 +0000
(10:07 +1100)
committer
Andrew Bartlett
<abartlet@samba.org>
Fri, 26 Oct 2012 06:26:20 +0000
(17:26 +1100)
source3/smbd/pysmbd.c
patch
|
blob
|
history
diff --git
a/source3/smbd/pysmbd.c
b/source3/smbd/pysmbd.c
index cfc4012630307c4b01456d8c3df1977490ec849d..9de26291d23fe7688fdfbee5d1beb3c4b310680c 100644
(file)
--- a/
source3/smbd/pysmbd.c
+++ b/
source3/smbd/pysmbd.c
@@
-101,6
+101,9
@@
static NTSTATUS set_nt_acl_no_snum(const char *fname,
set_conn_connectpath(conn, "/");
smbd_vfs_init(conn);
+ if (!posix_locking_init(false)) {
+ return NT_STATUS_NO_MEMORY;
+ }
fsp = talloc_zero(frame, struct files_struct);
if (fsp == NULL) {
@@
-145,6
+148,8
@@
static NTSTATUS set_nt_acl_no_snum(const char *fname,
DEBUG(0,("set_nt_acl_no_snum: fset_nt_acl returned %s.\n", nt_errstr(status)));
}
+ SMB_VFS_CLOSE(fsp);
+
conn_free(conn);
TALLOC_FREE(frame);