1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-12 13:18:14 +03:00

add ',' to trusted chars

SGI needs it for some compatibility device names from irix,
xvm volumes use "volname,subvolname" as the default device node.
This commit is contained in:
Kay Sievers 2006-03-17 01:56:02 +01:00
parent 0d5be398ff
commit 8a37a3915f

View File

@ -241,7 +241,7 @@ int replace_untrusted_chars(char *str)
if ((str[i] >= '0' && str[i] <= '9') ||
(str[i] >= 'A' && str[i] <= 'Z') ||
(str[i] >= 'a' && str[i] <= 'z') ||
strchr(" #$%+-./:=?@_", str[i])) {
strchr(" #$%+-./:=?@_,", str[i])) {
i++;
continue;
}