From f3ee1516e631274531439e0ab7c384d02aff789c Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Mon, 1 Feb 2010 18:50:43 -0800 Subject: Fix bug #7084 - Create time on directories not stored properly in an EA in new create time code. Remove erroneous optimisation that caused no EA to be set if calculated btime matched st_ex btime, and calculated DOS attribute matched existing file attribute. Jeremy. --- source3/smbd/dosmode.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'source3') diff --git a/source3/smbd/dosmode.c b/source3/smbd/dosmode.c index e5d6bc32e8..10249f4634 100644 --- a/source3/smbd/dosmode.c +++ b/source3/smbd/dosmode.c @@ -739,13 +739,6 @@ int file_set_dosmode(connection_struct *conn, struct smb_filename *smb_fname, dosmode &= ~FILE_ATTRIBUTE_OFFLINE; old_mode &= ~FILE_ATTRIBUTE_OFFLINE; - if (old_mode == dosmode && - (timespec_compare(&new_create_timespec, - &smb_fname->st.st_ex_btime) == 0)) { - smb_fname->st.st_ex_mode = unixmode; - return(0); - } - smb_fname->st.st_ex_btime = new_create_timespec; #ifdef HAVE_STAT_DOS_FLAGS -- cgit