smbd: we DO NEED the low level fd
authorRalph Boehme <slow@samba.org>
Tue, 27 Oct 2020 18:21:48 +0000 (19:21 +0100)
committerRalph Boehme <slow@samba.org>
Wed, 16 Dec 2020 09:08:31 +0000 (09:08 +0000)
In order to make everything handle based, we will need the basefile handle when
eg the client requests setting any of the filemetadata that is common across all
streams, eg the file's timestamps.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/open.c

index 68621a892d9dc1eb6bdf53fb22efa9a84332b5a8..47ee513e0a4686ca6eca4185a973ee1d5ed08d94 100644 (file)
@@ -5629,8 +5629,6 @@ static NTSTATUS create_file_unixpath(connection_struct *conn,
                                   nt_errstr(status)));
                        goto fail;
                }
-               /* we don't need the low level fd */
-               fd_close(base_fsp);
        }
 
        status = file_new(req, conn, &fsp);