typedef [public,flag(NDR_NOALIGN)] struct {
uint32 nlinks;
uint32 reparse_tag;
- uint32 posix_perms;
+ uint32 posix_mode;
dom_sid owner;
dom_sid group;
} smb3_posix_cc_info;
self.assertEqual(cc.nlinks, 1)
self.assertEqual(cc.reparse_tag, libsmb.IO_REPARSE_TAG_RESERVED_ZERO)
- self.assertEqual(cc.posix_perms, 0o600)
+ self.assertEqual(cc.posix_mode, 0o600)
self.assertEqual(cc.owner, dom_sid(self.samsid + "-1000"))
self.assertTrue(str(cc.group).startswith("S-1-22-2-"))
self.assertEqual(cc.nlinks, 2)
self.assertEqual(cc.reparse_tag, libsmb.IO_REPARSE_TAG_RESERVED_ZERO)
- self.assertEqual(cc.posix_perms, 0o700)
+ self.assertEqual(cc.posix_mode, 0o700)
self.assertEqual(cc.owner, dom_sid(self.samsid + "-1000"))
self.assertTrue(str(cc.group).startswith("S-1-22-2-"))
finfo->st_ex_dev = info.device;
finfo->st_ex_nlink = info.cc.nlinks;
finfo->reparse_tag = info.cc.reparse_tag;
- finfo->st_ex_mode = wire_perms_to_unix(info.cc.posix_perms);
+ finfo->st_ex_mode = wire_perms_to_unix(info.cc.posix_mode);
sid_copy(&finfo->owner_sid, &info.cc.owner);
sid_copy(&finfo->group_sid, &info.cc.group);
struct stat_ex *psbuf = &state->result->fsp_name->st;
struct smb3_posix_cc_info cc = {
.nlinks = psbuf->st_ex_nlink,
- .posix_perms = unix_perms_to_wire(psbuf->st_ex_mode &
- ~S_IFMT),
+ .posix_mode = unix_perms_to_wire(psbuf->st_ex_mode &
+ ~S_IFMT),
};
uint8_t buf[sizeof(struct smb3_posix_cc_info)];
struct ndr_push ndr = {
.change_time = unix_timespec_to_nt_time(st->st_ex_ctime),
.cc.nlinks = st->st_ex_nlink,
.cc.reparse_tag = reparse_tag,
- .cc.posix_perms = unix_perms_to_wire(st->st_ex_mode & ~S_IFMT),
+ .cc.posix_mode = unix_perms_to_wire(st->st_ex_mode & ~S_IFMT),
.cc.owner = global_sid_NULL,
.cc.group = global_sid_NULL,
};