Fix bug #9587 - archive flag is always set on directories.
commit3d46a077dd0999cc0c6032379147811c8bb660fb
authorJeremy Allison <jra@samba.org>
Thu, 24 Jan 2013 19:02:30 +0000 (24 11:02 -0800)
committerDavid Disseldorp <ddiss@samba.org>
Fri, 25 Jan 2013 11:01:41 +0000 (25 12:01 +0100)
tree0ab13bc69130f1f179209395497f2423425f06e1
parentc5db4eb9104f1a95220273ee2b0290d157053922
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>
Reviewed-by: David Disseldorp <ddiss@samba.org>
source3/smbd/reply.c