]> git.ipfire.org Git - thirdparty/util-linux.git/commit
include/carefulputc: encode also ' and $ in fputs_quoted() output
authorKarel Zak <kzak@redhat.com>
Thu, 27 Nov 2014 12:36:09 +0000 (13:36 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 27 Nov 2014 12:36:09 +0000 (13:36 +0100)
commitcca51b9e45460e05bf5da81be80a26a70a120704
treefbd3630cb9ba4097ee4f50b79df8ba588153ea1c
parent705854f30773e463cd61796bc896f0c0053aa36d
include/carefulputc: encode also ' and $ in fputs_quoted() output

This change is important for commands linked with libsmartcols (e.g. lsblk(1))
to make it more safe for crazy scenarios like

   eval $(lsblk --fs --pairs /dev/sdb1)

where the command returns NAME="value" from filesystem LABELS (etc.)

Signed-off-by: Karel Zak <kzak@redhat.com>
include/carefulputc.h