Fix bug #7084 - Create time on directories not stored properly in an EA in new create...
authorJeremy Allison <jra@samba.org>
Tue, 2 Feb 2010 02:50:43 +0000 (18:50 -0800)
committerJeremy Allison <jra@samba.org>
Tue, 2 Feb 2010 02:50:43 +0000 (18:50 -0800)
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

index e5d6bc32e855537a4b907c990ac82a431ba57011..10249f4634a2ac32d3a03df76c84a76267a19b9f 100644 (file)
@@ -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