From: "Zeeshan Ali (Khattak)" <zeeshanak@xxxxxxxxx> --- libblkid/src/encode.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libblkid/src/encode.c b/libblkid/src/encode.c index ff57be4..e96e0e2 100644 --- a/libblkid/src/encode.c +++ b/libblkid/src/encode.c @@ -181,9 +181,7 @@ static int replace_whitespace(const char *str, char *to, size_t len) static int is_whitelisted(char c, const char *white) { - if ((c >= '0' && c <= '9') || - (c >= 'A' && c <= 'Z') || - (c >= 'a' && c <= 'z') || + if (isalnum (c) || strchr("#+-.:=@_", c) != NULL || (white != NULL && strchr(white, c) != NULL)) return 1; -- 1.8.1.2 -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html