diff options
author | Jeremy Allison <jra@samba.org> | 2004-03-19 23:46:48 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2004-03-19 23:46:48 +0000 |
commit | 7cea655424467770600a7866eb3ac909ddf8fcab (patch) | |
tree | b6116193c20a1cd3632c10773c89c16539071a39 /source3/smbd/open.c | |
parent | 56c2626e128cf8cbd136c280288c31b13a831fe2 (diff) | |
download | samba-7cea655424467770600a7866eb3ac909ddf8fcab.tar.gz samba-7cea655424467770600a7866eb3ac909ddf8fcab.tar.bz2 samba-7cea655424467770600a7866eb3ac909ddf8fcab.zip |
Fix for #1064 - ensure truncate attribute checking is done correctly on "hidden" dot files.
Jeremy.
(This used to be commit a6045c904fbe7df111c520134581bfd4f1ca67a8)
Diffstat (limited to 'source3/smbd/open.c')
-rw-r--r-- | source3/smbd/open.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c index e688f8de48..084ae9a1bf 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -754,7 +754,8 @@ static BOOL open_match_attributes(connection_struct *conn, char *path, mode_t ex old_dos_mode = dos_mode(conn, path, &sbuf); sbuf.st_mode = new_mode; - new_dos_mode = dos_mode(conn, path, &sbuf); + /* The new mode conversion shouldn't look at pathname. */ + new_dos_mode = dos_mode_from_sbuf(conn, &sbuf); noarch_old_dos_mode = (old_dos_mode & ~FILE_ATTRIBUTE_ARCHIVE); noarch_new_dos_mode = (new_dos_mode & ~FILE_ATTRIBUTE_ARCHIVE); |