Skip to content

Commit

Permalink
smbd: Add reparse tag to smb3_posix_cc_info
Browse files Browse the repository at this point in the history
Signed-off-by: Volker Lendecke <[email protected]>
Reviewed-by: Jeremy Allison <[email protected]>

Autobuild-User(master): Jeremy Allison <[email protected]>
Autobuild-Date(master): Tue May 14 23:29:46 UTC 2024 on atb-devel-224
  • Loading branch information
vlendec authored and jrasamba committed May 14, 2024
1 parent ecb17c1 commit b71f729
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion selftest/knownfail.d/smb3unix

This file was deleted.

3 changes: 3 additions & 0 deletions source3/smbd/smb2_create.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
#include "messages.h"
#include "lib/util_ea.h"
#include "source3/passdb/lookup_sid.h"
#include "source3/modules/util_reparse.h"

#undef DBGC_CLASS
#define DBGC_CLASS DBGC_SMB2
Expand Down Expand Up @@ -1696,6 +1697,8 @@ static void smbd_smb2_create_after_exec(struct tevent_req *req)
uid_to_sid(&cc.owner, psbuf->st_ex_uid);
gid_to_sid(&cc.group, psbuf->st_ex_gid);

(void)fsctl_get_reparse_tag(state->result, &cc.reparse_tag);

ndr_err =
ndr_push_smb3_posix_cc_info(&ndr,
NDR_SCALARS | NDR_BUFFERS,
Expand Down

0 comments on commit b71f729

Please sign in to comment.