Fix bug #9587 - archive flag is always set on directories.
commit6603013f8f03773d141c33fd1c4923197a5350c8
authorJeremy Allison <jra@samba.org>
Thu, 24 Jan 2013 19:02:30 +0000 (24 11:02 -0800)
committerKarolin Seeger <kseeger@samba.org>
Mon, 28 Jan 2013 08:46:05 +0000 (28 09:46 +0100)
tree83c31f24f31f665cbad64453079c7811b1ea2bea
parentae0cf58a75874541c4c9b8b29a2b1fc45928be69
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>
source3/smbd/reply.c