rclone.mount: ignore _netdev mount argument - FIxes #5808

Do not trigger an error upon parsing argument starting with underscores.

_netdev was already ignored after parsing.
This commit is contained in:
Hugal31
2022-05-12 21:27:13 +02:00
committed by GitHub
parent 6500e1d205
commit a36fef8a66
2 changed files with 2 additions and 2 deletions

View File

@@ -208,7 +208,7 @@ func parseHelperOptionString(optString string) (opts []string, err error) {
if len(param) == 0 {
return nil, errHelperEmptyOption
}
if param[0] == '-' || param[0] == '_' {
if param[0] == '-' {
return nil, errHelperOptionName
}
prev = i + 1