From 00fa59350a4b5b31e5425c877557996669d55176 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Mon, 1 Feb 2010 18:50:43 -0800 Subject: [PATCH] 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(-) diff --git a/source3/smbd/dosmode.c b/source3/smbd/dosmode.c index e5d6bc32e85..10249f4634a 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 -- 2.11.4.GIT