summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2008-12-01 14:28:27 -0800
committerJeremy Allison <jra@samba.org>2008-12-01 14:28:27 -0800
commite605fdc81c64eeb37a9d77493df42c0bb010f41f (patch)
treec154cacf623f469c91caaa881e71381e7607f604 /source3/smbd
parent65169a43b321cd06d2f9474183ca8195c6182333 (diff)
downloadsamba-e605fdc81c64eeb37a9d77493df42c0bb010f41f.tar.gz
samba-e605fdc81c64eeb37a9d77493df42c0bb010f41f.tar.bz2
samba-e605fdc81c64eeb37a9d77493df42c0bb010f41f.zip
s3:smbd: close the low level fd of the base_fsp, if the file was created
metze
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/open.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c
index 420a65b562..f98415ee33 100644
--- a/source3/smbd/open.c
+++ b/source3/smbd/open.c
@@ -2852,6 +2852,8 @@ NTSTATUS create_file_unixpath(connection_struct *conn,
"%s\n", base, nt_errstr(status)));
goto fail;
}
+ /* we don't need to low level fd */
+ fd_close(base_fsp);
}
/*