Setting dos_attr from smbc_setxattr problem 3.0.23a
henke at mac.se
Wed Aug 16 15:40:53 GMT 2006
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 ???).
char *value1 = "2100000000"; // My time value
smbc_setxattr( strPath.c_str(), "system.dos_attr.c_time", value1,
strlen(value1), SMBC_XATTR_FLAG_REPLACE );
smbc_setxattr( strPath.c_str(), "system.dos_attr.m_time", value1,
strlen(value1), SMB C_XATTR_FLAG_REPLACE );
We have also tried to use SMB C_XATTR_FLAG_CREATE instead with no luck.
We should also point out that we don't get an error doing this. Both
calls returns 0.
More information about the samba-technical