Commit c5a709f
ksmbd: handle caseless file creation
Ray Zhang reported ksmbd can not create file if parent filename is
caseless.
Y:\>mkdir A
Y:\>echo 123 >a\b.txt
The system cannot find the path specified.
Y:\>echo 123 >A\b.txt
This patch convert name obtained by caseless lookup to parent name.
Cc: stable@vger.kernel.org # v5.15+
Reported-by: Ray Zhang <zhanglei002@gmail.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>1 parent ca4974c commit c5a709f
1 file changed
+3
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1167 | 1167 | | |
1168 | 1168 | | |
1169 | 1169 | | |
1170 | | - | |
| 1170 | + | |
1171 | 1171 | | |
1172 | 1172 | | |
1173 | 1173 | | |
| |||
1235 | 1235 | | |
1236 | 1236 | | |
1237 | 1237 | | |
1238 | | - | |
1239 | | - | |
1240 | | - | |
1241 | | - | |
| 1238 | + | |
1242 | 1239 | | |
1243 | 1240 | | |
1244 | 1241 | | |
| |||
1281 | 1278 | | |
1282 | 1279 | | |
1283 | 1280 | | |
1284 | | - | |
1285 | | - | |
1286 | 1281 | | |
1287 | 1282 | | |
| 1283 | + | |
1288 | 1284 | | |
1289 | 1285 | | |
1290 | 1286 | | |
| |||
0 commit comments