[RFC] incorrect dosmode on stream associated with dir
Jeremy Allison
jra at samba.org
Tue Apr 10 23:41:20 UTC 2018
On Tue, Apr 10, 2018 at 07:34:42PM -0400, Andrew Walker via samba-technical wrote:
>
> Great! This is turning out to be more interesting than I thought :)
>
> I had same result as you when I first generated the ADS and output allinfo:
>
> smb: \> allinfo test35:ADS
> altname: test35
> create_time: Tue Apr 10 13:45:00 2018 EDT
> access_time: Tue Apr 10 13:45:00 2018 EDT
> write_time: Tue Apr 10 13:45:00 2018 EDT
> change_time: Tue Apr 10 13:45:00 2018 EDT
> attributes: A (20)
>
> Then I removed the "archive" bit from the directory.
> setmode test35 -a
>
> Then I repeat the test
>
> smb: \> allinfo test35:ADS
> altname: test35
> create_time: Tue Apr 10 13:45:00 2018 EDT
> access_time: Tue Apr 10 13:45:00 2018 EDT
> write_time: Tue Apr 10 13:45:00 2018 EDT
> change_time: Tue Apr 10 13:45:00 2018 EDT
> attributes: D (10)
> NT_STATUS_INVALID_PARAMETER getting streams for \test35:ADS
>
> The stream is now reported as a directory. It looks like
> FILE_ATTRIBUTE_DIRECTORY gets written to the dir's DOSATTRIB whenever we
> modify it.
Perfect ! Thanks for that - great work ! I can now
look into the underlying issue :-)
Cheers,
Jeremy.
More information about the samba-technical
mailing list