Samba 2.0.6, MKS' touch.exe, and file/dir time stamps

Jeremy Allison jeremy at
Tue Dec 21 20:09:53 GMT 1999

"Michael C. Adler" wrote:
> This patch breaks "copy!"  Change MAX to MIN and I think you are set.
> I assume 2.0.6 changed from MAX to MIN because I noticed that copy from
> a real NTFS drive to a Samba drive caused the date to be set to the
> changed time instead of the write time.  This broke tools like robocopy
> and made even dir show the wrong time by default when compared to the NT
> behavior.
> The change does appear to have broken touch (in the NT resource kit).
> Some other versions of touch continued to work.
> I tried the experiment of taking Paul's code and changing MAX back to
> MIN.  Magic!  I didn't test it, but I assume that touch from the NT
> resource kit sets one of the two parameters to either 0 or -1 and the
> other to the current time.
> Paul's check for 0/-1 combined with MIN appears to break the fewest
> programs.

Ok - I'll change it to MIN and commit it to the master sources.

Thanks for testing this for us.


	Jeremy Allison,
	Samba Team.

Buying an operating system without source is like buying
a self-assembly Space Shuttle with no instructions.

More information about the samba-technical mailing list