Date:        10/28/97 2:03:52 PM
From:        Marty Leisner <leisner@SDSP.MC.XEROX.COM>
Subject:     cifs6.txt is wrong on SMB_INFO_STANDARD
To:          ("<CIFS@LISTSERV.MSN.COM>"@LOCAL)

Are we sure about the SMB_INFO_STANDARD order encoding in
cifs6 (section 4.2.14.1).

I tried this:
 SMB_DATE CreationDate;           Date when file was created
 SMB_TIME CreationTime;           Time when file was created
 SMB_DATE LastAccessDate;         Date of last file access
 SMB_TIME LastAccessTime;         Time of last file access
 SMB_DATE LastWriteDate;          Date of last write to the file
 SMB_TIME LastWriteTime;          Time of last write to the file

and couldn't get things to make sense.

After much work (I hacked up tcpdump to give this information),
I changed the order of date and time, and lo and behold:

Trans2 response TRANS2_QPATHINFO
SMB_INFO_STANDARD
Creation 9/1/1997 14:28:48
Access 9/1/1997 0:00:00
Write 9/1/1997 14:32:02


Locally on win95, the dates agree, the times are a bit off (0:0:0 isn't displayed,
created time says 5:46:21 PM, modified say 5:49:36PM).

My time decode function is:
static char *make_smb_time_string(unsigned short t)
{
        int hour;
        int minutes;
        int seconds;
        static char buffer[40];

        hour = t >> 11;
        minutes = (t & 0x7e0) >> 5;
        seconds = (t & 0x1f) * 2;
        sprintf(buffer, "%d:%02d:%02d", hour, minutes, seconds);
        return buffer;
}


which looks fine (I'm not sure why there's a difference of 17 minutes + integral
hours)...


The raw data triple for the time (in network byte order out of tcpdump )
 is
98 73 21 23 00 00 21 23 01 74 21 23

Is cifs6.doc going to be updated?


marty           leisner@sdsp.mc.xerox.com
Don't  confuse education with schooling.
        Milton Friedman to Yogi Berra

----------------------------------------------------------------
Users Guide http://www.microsoft.com/sitebuilder/resource/mailfaq.asp
contains important info including how to unsubscribe.  Save time, search
the archives at http://microsoft.ease.lsoft.com/archives/index.html