generator/customize.ml: Split --chown parameter on ':' character

The previous code split it on ',' which was completely wrong.
(It reveals the lack of testing however).

Fixes: commit c08032ebe2
Reported-by: Yongkui Guo
This commit is contained in:
Richard W.M. Jones
2024-01-19 13:18:00 +00:00
parent 836a977c16
commit e9a728bb22
2 changed files with 2 additions and 2 deletions

2
common

Submodule common updated: 0dba002c20...54869c9875

View File

@@ -775,7 +775,7 @@ let rec argspec () =
let len = String.length arg in
String.sub arg 0 i, String.sub arg (i+1) (len-(i+1))
and split_string_triplet option_name arg =
match String.nsplit ~max:3 \",\" arg with
match String.nsplit ~max:3 \":\" arg with
| [a; b; c] -> a, b, c
| _ ->
error (f_\"invalid format for '--%%s' parameter, see the man page\")