Bug 5379 - Bad file modification date/time stamps created from the windows client
Bad file modification date/time stamps created from the windows client
Status: NEW
Product: Samba 3.0
Classification: Unclassified
Component: File Services
3.0.28a
PA-RISC HP-UX
: P3 normal
: none
Assigned To: Samba Bugzilla Account
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-04-08 14:11 UTC by Greg Barry
Modified: 2008-05-13 11:57 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Greg Barry 2008-04-08 14:11:55 UTC
I'm running samba server version 3.0.28a on an HP-UX machine with XP-pro windows clients.

When a windows client creates a new file on the samba share the modification time is not set correctly. 

On the HP-UX side date/time stamp shows as:

   % ls -l README
   -rwxr--r--   1 e6b564     users         1081 Dec 13  1901 README

  The date/time stamp is always "Dec 13  1901" ?

On the windows side from dos it shows:

   Y:\> dir README
   10/29/6250  05:35  AM                      1,081 README

   This date/time stamp will vary

   In file explorer, the "Date Modified" field is blank


A snippet from running debug level 10 on the samba server shows:

[2008/04/08 10:03:45, 6] smbd/trans2.c:smb_set_file_time(4122)
  smb_set_file_time: actime: Tue Apr  8 10:03:44 2008
   smb_set_file_time: modtime: Fri Dec 13 12:45:52 1901
   smb_set_file_time: setting pending modtime to Fri Dec 13 12:45:52 1901

The compile on the server was done using gcc ver 4.0.1:

./configure --without-ldap
make
make install