Whamcloud - gitweb
blkid: Output non-printing characters using ^ and M- notation
authorTheodore Ts'o <tytso@mit.edu>
Sun, 16 Dec 2007 17:26:57 +0000 (12:26 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 16 Dec 2007 17:26:57 +0000 (12:26 -0500)
commitf8efcda2db612f6b6d33dc1a6ff78a1c048608f4
treec4e6f1a3c8eb14f8935ccbb6eea6bfe5defcfc89
parent43f0cbc1f91f6e104ae7cbee367af7f3746ecc4c
blkid: Output non-printing characters using ^ and M- notation

When printing the value of tags in a formatted format, print control
characters and characters with the high eight bit set using the ^ and
M- notation, respectively.  This prevents a filesystem with a garbage
label from potentially screwing up the user's screen (for example,
putting it into graphical mode).

Addresses-Ubuntu-Bug: #78087

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
misc/blkid.c