Satwik Hebbar
2004-Oct-26 12:36 UTC
[Samba] Problem with time_t values returned by getattrE
Hi, I am using Samba-3.0.7 on a RH9.0 box and trying to connect to a volume (on a Windows 2003 server) supporting SMB. Everything works fine, I can open files, read them, etc. However, I tried 2 different actions on a file on the volume : 1) I do a getattrE call and obtain the time_t values for a_time, c_time, m_time. attribute 32 a_time 2433474185 m_time 2600589349 filesize 15778 c_time 2167069703 2) I mount the volume and do a stat on the same file. (33261, 64L, 10L, 1, 0, 0, 15778L, 1098707904, 995723644, 1056364762) The stat tuple has the time_t values as the last three values on the list. As you can see, I expect them to return the same numbers, but that is not the case. Can anyone tell me what's happening? Or is there some function I must call to convert the numbers to the proper format? Thanks in advance, Satwik Hebbar,