| From a1d0b84c308d7fdfb67eb76498116a6c2fdda507 Mon Sep 17 00:00:00 2001 |
| From: =?UTF-8?q?Bj=C3=B6rn=20Baumbach?= <bb@sernet.de> |
| Date: Tue, 10 Jun 2014 12:03:26 +0200 |
| Subject: fs/cifs: fix regression in cifs_create_mf_symlink() |
| MIME-Version: 1.0 |
| Content-Type: text/plain; charset=UTF-8 |
| Content-Transfer-Encoding: 8bit |
| |
| From: =?UTF-8?q?Bj=C3=B6rn=20Baumbach?= <bb@sernet.de> |
| |
| commit a1d0b84c308d7fdfb67eb76498116a6c2fdda507 upstream. |
| |
| commit d81b8a40e2ece0a9ab57b1fe1798e291e75bf8fc |
| ("CIFS: Cleanup cifs open codepath") |
| changed disposition to FILE_OPEN. |
| |
| Signed-off-by: Bjรถrn Baumbach <bb@sernet.de> |
| Signed-off-by: Stefan Metzmacher <metze@samba.org> |
| Reviewed-by: Stefan Metzmacher <metze@samba.org> |
| Cc: Pavel Shilovsky <piastry@etersoft.ru> |
| Cc: Steve French <sfrench@samba.org> |
| Signed-off-by: Steve French <smfrench@gmail.com> |
| Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
| |
| --- |
| fs/cifs/link.c | 2 +- |
| 1 file changed, 1 insertion(+), 1 deletion(-) |
| |
| --- a/fs/cifs/link.c |
| +++ b/fs/cifs/link.c |
| @@ -374,7 +374,7 @@ cifs_create_mf_symlink(unsigned int xid, |
| oparms.cifs_sb = cifs_sb; |
| oparms.desired_access = GENERIC_WRITE; |
| oparms.create_options = create_options; |
| - oparms.disposition = FILE_OPEN; |
| + oparms.disposition = FILE_CREATE; |
| oparms.path = path; |
| oparms.fid = &fid; |
| oparms.reconnect = false; |