Repository navigation
Commit 62a1a43
cifs: clean up handling of unc= option
Make sure we free any existing memory allocated for vol->UNC, just in
case someone passes in multiple unc= options.
Get rid of the check for too long a UNC. The check for >300 bytes seems
arbitrary. We later copy this into the tcon->treeName, for instance and
it's a lot shorter than 300 bytes.
Eliminate an extra kmalloc and copy as well. Just set the vol->UNC
directly with the contents of match_strdup.
Establish that the UNC should be stored with '\\' delimiters. Use
convert_delimiter to change it in place in the vol->UNC.
Finally, move the check for a malformed UNC into
cifs_parse_mount_options so we can catch that situation earlier.
Pavel Shilovsky <piastry@etersoft.ru>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <smfrench@gmail.com>1 parent 193cdd8 commit 62a1a43
1 file changed
Lines changed: 12 additions & 27 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1566 | 1566 | | |
1567 | 1567 | | |
1568 | 1568 | | |
1569 | | - | |
1570 | | - | |
| 1569 | + | |
| 1570 | + | |
| 1571 | + | |
1571 | 1572 | | |
1572 | 1573 | | |
1573 | | - | |
1574 | | - | |
1575 | | - | |
1576 | | - | |
1577 | | - | |
1578 | | - | |
1579 | | - | |
1580 | | - | |
1581 | | - | |
1582 | | - | |
1583 | | - | |
1584 | | - | |
1585 | | - | |
1586 | | - | |
1587 | | - | |
1588 | | - | |
1589 | | - | |
| 1574 | + | |
| 1575 | + | |
1590 | 1576 | | |
1591 | | - | |
| 1577 | + | |
1592 | 1578 | | |
1593 | 1579 | | |
1594 | 1580 | | |
| |||
1813 | 1799 | | |
1814 | 1800 | | |
1815 | 1801 | | |
| 1802 | + | |
| 1803 | + | |
| 1804 | + | |
| 1805 | + | |
| 1806 | + | |
| 1807 | + | |
1816 | 1808 | | |
1817 | 1809 | | |
1818 | 1810 | | |
| |||
2575 | 2567 | | |
2576 | 2568 | | |
2577 | 2569 | | |
2578 | | - | |
2579 | | - | |
2580 | | - | |
2581 | | - | |
2582 | | - | |
2583 | | - | |
2584 | | - | |
2585 | 2570 | | |
2586 | 2571 | | |
2587 | 2572 | | |
| |||
0 commit comments