Setting dos_attr from smbc_setxattr problem 3.0.23a
henke at mac.se
Wed Aug 16 18:48:48 GMT 2006
We have just tested on Win XP Pro SP2 box so far.
Do you mean that setting more that m_time is only supported on modern
Which versions do you classify as "modern"?
16 aug 2006 kl. 18:40 skrev derrell at samba.org:
> Henrik Zagerholm <henke at mac.se> writes:
>> Hello list,
>> I'm building a little tool to set m-time and c-time on a file on
>> a win box
>> using libsmbclient.
>> The m-time works as expected but when I try to do the same on c-
>> time it
>> doesn't. (Actually the m-time gets modified when setting c-time ???).
> The mechanism used for setting times differs depending on what
> Windows version
> your peer is. On "modern" versions of Windows, the SetPathInfo
> call is used,
> whereas on older versions of Windows, setAttrE may be required.
> The first thing that occurs when you issue these calls is that the
> values of the attributes are retrieved, using qpathinfo2 if available
> ("modern" versions of Windows); getatr otherwise. In the latter
> case, only
> m_time is retrieved, so c_time and a_time are set to the m_time value.
> On what version of Windows are you trying to set c_time and m_time?
More information about the samba-technical