cifs: fix buffer format byte on NT Rename/hardlink
authorJeff Layton <jlayton@tupile.poochiereds.net>
Thu, 26 Mar 2009 23:05:21 +0000 (23:05 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sat, 2 May 2009 17:23:31 +0000 (10:23 -0700)
commitf1ffa0b8f5270d4961a0eb62083d9a5403e99e6e
tree9546457308aa48f1d59cb9e9497c49be70bae956
parent1e1d108c8d9b6ec206bf9e074e3c8fe5fea7876b
cifs: fix buffer format byte on NT Rename/hardlink

upstream commit: fcc7c09d94be7b75c9ea2beb22d0fae191c6b4b9

Discovered at Connnectathon 2009...

The buffer format byte and the pad are transposed in NT_RENAME calls
(which are used to set hardlinks). Most servers seem to ignore this
fact, but NetApp filers throw back an error due to this problem. This
patch fixes it.

CC: Stable <stable@kernel.org>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/cifs/cifssmb.c