Fix bug #9587 - archive flag is always set on directories.
authorJeremy Allison <jra@samba.org>
Thu, 24 Jan 2013 19:02:30 +0000 (11:02 -0800)
committerKarolin Seeger <kseeger@samba.org>
Thu, 14 Mar 2013 09:51:40 +0000 (10:51 +0100)
commit7df430f06690d0e30083a18a9c7bf7ace3b6953c
treeaaa8b82f3b1dd9228ff3b6fed663dc04d0181844
parenta63b0eaed7bfb59d1fe6082a2edc4eb31cbca3d7
Fix bug #9587 - archive flag is always set on directories.

Creating a directory to a Samba share sets the attributes to 'D' only
(correct) - only when creating a new file should the 'A' attribute
be set.

However, doing a rename of that directory sets the 'A' attribute in error.
This should only be done on a file rename. smbclient regression test to follow.

Signed-off-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit 6603013f8f03773d141c33fd1c4923197a5350c8)
source3/smbd/reply.c