]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libblkid: Optimize the blkid_safe_string() function
authorKarel Zak <kzak@redhat.com>
Tue, 15 Jun 2021 08:25:24 +0000 (10:25 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 15 Jun 2021 08:25:24 +0000 (10:25 +0200)
commit6db368598962ea8b0329ae148ab878fd458f2533
treed90091f58ed4146bbd2621c651f4f917343bea1d
parentf3e5d34cacf332836af4cd12d5caef897aa6112b
libblkid: Optimize the blkid_safe_string() function

Processing whitespace characters. Allows valid ASCII, valid UTF-8.
Replace everything else with '_'

Co-Author: changlianzhi <changlianzhi@uniontech.com>
Signed-off-by: changlianzhi <changlianzhi@uniontech.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
libblkid/src/encode.c