We messed up smbc_readdirplus :-(
metze at samba.org
Tue Jan 8 05:04:07 UTC 2019
>> We actually *have* this data as returned
>> from the SMB2_FIND_ID_BOTH_DIRECTORY_INFO
>> call when enumerating the directory, but
>> then throw it away when populating the
>> struct libsmb_file_info struct.
>> I think the best way forward is to
>> add a smbc_readdirplus_ex() call that
>> returns a new 'struct libsmb_file_info_ex'
>> struct that includes these extra fields.
>> Comments from other Samba Team members ?
>> I wish we'd gotten it right the first
>> time though, but that's probably my (our?)
>> fault :-(.
> Or what about smbc_readdirstat() that
> just returns a name plus a filled-in
> stat struct using the same internal
> algorithms that smbc_stat does ?
But 'struct stat' would loose information.
and 'struct statx' is not portable.
And 'short_name' would also be dropped?
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 833 bytes
Desc: OpenPGP digital signature
More information about the samba-technical