2.0.6: file timestamps acting strange - even with patch.

Nelson, John P. NelsonJP at genrad.com
Fri Mar 10 21:56:23 GMT 2000


> I'm running samba 2.X on Solaris (2.6, 2.5.1), and SunOS 4.X (but don't
> tell anyone about that last one).
> 
> I had been running samba 2.0.3, and one of my users noticed that when he
> copied a file, using an NT 4.0 workstation, copying a file from an NT
> fileserver (NTFS) to a Samba filesystem, that the dates were wrong on
> the copied file.  In particular, any file with a date older than last
> year seemed to be getting copied with a modified timestamp.  For
> example, files with dates from 1997 were getting written to the samba
> filesystem with a date of December 1999.  This behavior occurred with
> both NT Explorer and the dos box "copy" command.  The problem does NOT
> occur when copying from a local hard disk: only when copying from an NT
> fileserver!  (Also, the problem does not occur when copying in the other
> direction).
> 
> At first, I found I could fix the problem by setting "nt smb support =
> no".
> But I'd like to be able to use the features of Samba 2.X.
> 
> I loaded 2.0.6 on a test system, and the problem went away.  Going
> through the archives, I noticed the patch by Paul Eggert in Digest 2350,
> which solved a different file timestamp problem, applied the patch to my
> 2.0.6.  source, compiled it and installed it.
> 
> After applying the patch (and putting "nt smb support = yes" back), the
> "copy" timestamp bug is back!  I immediately backed out the patch
> (reverting to the original 2.0.6 source), and the problem went away.
> 
> I tried looking at the samba logs, but there's no relevent information
> with the log level less than 10, and there's way too much information
> for me to sort through at that level 10.  I don't really understand what
> the code is attempting to do, anyway.  The logs seem to report that an
> incorrect date is being passed from the client.  But that doesn't explain
> why the original code works, and the patched code doesn't
> 
> This is extremely reproducable.  If someone would like for me to send
> detailed log files, I'd be happy to do so.
> 
>   - john nelson (jpn at genrad.com)
> 


More information about the samba mailing list