util-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* suggestion to avoid erroneous lines in findmnt/lslocks/...
@ 2012-08-04 15:42 Pádraig Brady
  2012-08-04 15:57 ` Dave Reisner
  2012-08-06  8:15 ` Karel Zak
  0 siblings, 2 replies; 11+ messages in thread
From: Pádraig Brady @ 2012-08-04 15:42 UTC (permalink / raw)
  To: util-linux

There was a recent change in df in coreutils to sanitize output of paths:

http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=3ed70fd

The essential issue fixed there is that control chars in a path will be
converted to '?' (this works in all locales), and doing so will mean
'\n' for example is not output. You could even consider this a potential
security improvement so that arbitrary users couldn't influence the
output of these commands for all users.

I suggest using the simple inplace replacement function from above.

cheers,
Pádraig.

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2012-08-20  0:31 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-04 15:42 suggestion to avoid erroneous lines in findmnt/lslocks/ Pádraig Brady
2012-08-04 15:57 ` Dave Reisner
2012-08-05  2:02   ` Pádraig Brady
2012-08-06  8:15 ` Karel Zak
2012-08-06 11:10   ` Karel Zak
2012-08-06 14:44     ` Pádraig Brady
2012-08-07  8:09       ` Karel Zak
2012-08-07 11:35         ` Dave Reisner
2012-08-07 23:36         ` Pádraig Brady
2012-08-13 12:39           ` Karel Zak
2012-08-20  0:31             ` Pádraig Brady

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).