]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libsmartcols: sanitize variable names on export output
authorKarel Zak <kzak@redhat.com>
Thu, 3 Dec 2020 11:14:10 +0000 (12:14 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 3 Dec 2020 11:14:10 +0000 (12:14 +0100)
commit58b510e5805d8350c31bfb81a47bcd38ea9fdd7e
tree5c01911cf25a1123638ef3c91b3c950a2a8bf34a
parent77d44c1e51d4a0eec29af292864067d36231534e
libsmartcols: sanitize variable names on export output

The shells are very restrictive about variable names, only [:alnum:]
chars are allowed (and alphabetic chars as the first char).  The
library will replace "bad" chars with "_". The char '%' at the end is
replaced by _PCT.

Addresses: https://github.com/karelzak/util-linux/issues/1201
Signed-off-by: Karel Zak <kzak@redhat.com>
include/carefulputc.h
libsmartcols/src/print.c
libsmartcols/src/table.c
misc-utils/findmnt.8
misc-utils/lsblk.8
sys-utils/lsipc.1
sys-utils/lsmem.1