s3:smbd: close the low level fd of the base_fsp, if the file was created
authorStefan Metzmacher <metze@samba.org>
Mon, 1 Dec 2008 22:28:27 +0000 (14:28 -0800)
committerJeremy Allison <jra@samba.org>
Mon, 1 Dec 2008 22:28:27 +0000 (14:28 -0800)
metze

source3/smbd/open.c

index 420a65b562d12178f724bdb58d434cf31d7d5059..f98415ee33f350c8831a3e3f0e84009b2f14c2d2 100644 (file)
@@ -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);
        }
 
        /*