Steve French
c6fbba0546
[CIFS] make sure that DFS pathnames are properly formed
...
The paths in a DFS request are supposed to only have a single preceding
backslash, but we are sending them with a double backslash. This is
exposing a bug in Windows where it also sends a path in the response
that has a double backslash.
The existing code that builds the mount option string however expects a
double backslash prefix in a couple of places when it tries to use the
path returned by build_path_from_dentry. Fix compose_mount_options to
expect properly formed DFS paths (single backslash at front).
Also clean up error handling in that function. There was a possible
NULL pointer dereference and situations where a partially built option
string would be returned.
Tested against Samba 3.0.28-ish server and Samba 3.3 and Win2k8.
CC: Stable <stable@kernel.org >
Signed-off-by: Jeff Layton <jlayton@redhat.com >
Signed-off-by: Steve French <sfrench@us.ibm.com >
2008-12-26 02:29:13 +00:00
..
2008-12-19 16:50:22 -06:00
2008-10-13 10:10:37 -07:00
2008-10-13 10:10:37 -07:00
2008-10-23 05:13:21 -04:00
2008-10-13 10:10:37 -07:00
2008-11-06 15:41:17 -08:00
2008-10-16 11:21:46 -07:00
2008-10-23 05:13:21 -04:00
2008-12-26 02:29:13 +00:00
2008-10-27 08:40:17 -07:00
2008-10-23 05:12:52 -04:00
2008-08-20 15:40:32 -07:00
2008-10-13 09:47:43 +11:00
2008-10-13 10:10:37 -07:00
2008-11-13 13:22:34 -06:00
2008-11-19 18:49:58 -08:00
2008-10-23 05:13:01 -04:00
2008-12-08 19:49:32 -08:00
2008-10-23 10:23:07 -07:00
2008-11-12 17:17:17 -08:00
2008-12-10 08:01:52 -08:00
2008-11-06 15:41:22 -08:00
2008-11-01 09:49:46 -07:00
2008-10-23 05:13:01 -04:00
2008-10-23 05:13:25 -04:00
2008-10-23 05:13:25 -04:00
2008-11-19 18:50:00 -08:00
2008-10-23 05:12:58 -04:00
2008-07-26 20:53:07 -04:00
2008-10-13 10:10:37 -07:00
2008-10-23 05:13:01 -04:00
2008-11-06 22:37:59 -05:00
2008-11-06 22:38:07 -05:00
2008-11-06 15:43:13 -08:00
2008-10-23 10:23:07 -07:00
2008-11-24 13:29:07 -06:00
2008-07-26 12:00:07 -07:00
2008-07-26 20:53:37 -04:00
2008-10-28 15:21:40 -04:00
2008-11-24 10:36:09 -06:00
2008-10-17 02:38:36 +11:00
2008-12-01 19:55:25 -08:00
2008-12-16 18:26:16 -08:00
2008-10-23 05:13:21 -04:00
2008-10-23 05:13:21 -04:00
2008-11-18 15:08:56 +01:00
2008-12-10 08:01:54 -08:00
2008-07-26 12:00:07 -07:00
2008-10-20 08:50:26 -07:00
2008-10-23 10:23:07 -07:00
2008-07-30 14:30:34 -07:00
2008-07-26 20:53:14 -04:00
2008-10-23 05:13:21 -04:00
2008-07-26 12:00:07 -07:00
2008-11-21 18:59:33 +02:00
2008-11-27 17:38:28 +01:00
2008-10-23 05:13:21 -04:00
2008-12-05 15:39:13 +11:00
2008-07-26 20:53:40 -04:00
2008-10-23 05:13:27 -04:00
2008-07-26 20:53:14 -04:00
2008-07-26 12:00:08 -07:00
2008-10-20 20:17:18 -07:00
2008-10-20 13:19:56 -07:00
2008-10-16 11:21:38 -07:00
2008-10-16 11:21:29 -07:00
2008-10-16 11:21:38 -07:00
2008-10-16 11:21:38 -07:00
2008-10-16 11:21:38 -07:00
2008-10-09 08:56:21 +02:00
2008-10-09 08:57:05 +02:00
2008-12-04 04:22:57 -05:00
2008-11-27 17:38:28 +01:00
2008-10-23 05:12:59 -04:00
2008-07-25 10:53:34 -07:00
2008-10-26 11:22:08 -07:00
2008-10-23 05:17:12 -04:00
2008-10-16 11:21:32 -07:00
2008-10-23 05:12:44 -04:00
2008-12-01 19:55:24 -08:00
2008-12-09 19:36:38 -08:00
2008-12-05 15:35:10 -08:00
2008-10-21 07:47:06 -04:00
2008-11-01 09:49:46 -07:00
2008-08-01 11:25:23 -04:00
2008-10-23 14:27:09 +04:00
2008-10-16 11:21:32 -07:00
2008-08-15 08:35:44 -07:00
2008-11-01 09:49:46 -07:00
2008-12-10 08:01:53 -08:00
2008-12-05 15:35:10 -08:00
2008-08-20 15:40:32 -07:00
2008-10-23 05:13:26 -04:00
2008-10-20 08:52:39 -07:00
2008-10-30 11:38:45 -07:00
2008-10-23 12:04:37 -07:00
2008-11-06 15:41:20 -08:00
2008-10-16 11:21:32 -07:00
2008-11-19 18:49:59 -08:00
2008-11-12 17:17:17 -08:00
2008-10-21 07:47:06 -04:00
2008-11-01 09:49:46 -07:00
2008-07-25 10:53:35 -07:00
2008-07-25 10:53:35 -07:00
2008-07-25 10:53:35 -07:00
2008-10-23 05:12:59 -04:00
2008-10-23 05:13:10 -04:00
2008-10-26 11:22:08 -07:00
2008-10-20 08:52:39 -07:00
2008-10-30 11:38:45 -07:00
2008-07-26 20:53:34 -04:00
2008-10-23 10:23:07 -07:00
2008-09-05 21:35:09 -07:00
2008-07-26 20:53:34 -04:00
2008-07-26 20:53:34 -04:00