summaryrefslogtreecommitdiff
path: root/source3/smbd/dosmode.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2010-02-01 18:50:43 -0800
committerJeremy Allison <jra@samba.org>2010-02-01 18:50:43 -0800
commitf3ee1516e631274531439e0ab7c384d02aff789c (patch)
tree1051b553b44b5338d505810352d957cddef76349 /source3/smbd/dosmode.c
parenta35be8c0c2d804638d9eda5afb6c96ef2f090549 (diff)
downloadsamba-f3ee1516e631274531439e0ab7c384d02aff789c.tar.gz
samba-f3ee1516e631274531439e0ab7c384d02aff789c.tar.bz2
samba-f3ee1516e631274531439e0ab7c384d02aff789c.zip
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.
Diffstat (limited to 'source3/smbd/dosmode.c')
-rw-r--r--source3/smbd/dosmode.c7
1 files changed, 0 insertions, 7 deletions
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