allow valid usb devices where their text is null (#12572)
(cherry picked from commit 35d1d263142198c954c79c6f09320d0fc6efa54a)
Co-authored-by: M. Rehan <mrehanlm93 at gmail.com>
Add validation for SMB share name (#12564) (#12567)
TrueNAS SMB share name validation allowed invalid characters, which
resulted in share that was created being rejected by libsmbconf.
This commit validates that share name minimally meets requirements
from MS-FSCC 2.1.6
```
* A share name MUST be no more than 80 characters in length.
* The following characters are illegal in a share name:
" \ / [ ] : | < > + = ; , * ?
* Control characters in range 0x00 through 0x1F, inclusive, are illegal in a share name.
* All other Unicode characters are legal.
```
[6 lines not shown]
Add validation for SMB share name (#12564)
TrueNAS SMB share name validation allowed invalid characters, which
resulted in share that was created being rejected by libsmbconf.
This commit validates that share name minimally meets requirements
from MS-FSCC 2.1.6
```
* A share name MUST be no more than 80 characters in length.
* The following characters are illegal in a share name:
" \ / [ ] : | < > + = ; , * ?
* Control characters in range 0x00 through 0x1F, inclusive, are illegal in a share name.
* All other Unicode characters are legal.
```
[2 lines not shown]
Add validation for SMB share name
TrueNAS SMB share name validation allowed invalid characters, which
resulted in share that was created being rejected by libsmbconf.
This commit validates that share name minimally meets requirements
from MS-FSCC 2.1.6
```
* A share name MUST be no more than 80 characters in length.
* The following characters are illegal in a share name:
" \ / [ ] : | < > + = ; , * ?
* Control characters in range 0x00 through 0x1F, inclusive, are illegal in a share name.
* All other Unicode characters are legal.
```
[3 lines not shown]