Re: bug#35137: [df] incorrect parsing of /proc/self/mountinfo with \r in mount path

2019-04-10 Thread Zbigniew Jędrzejewski-Szmek
Hi, I don't know this codebase, so can't comment on the patch, but the same bug in util-linux was solved by ditching scanf. https://github.com/karelzak/util-linux/commit/e902609400a861dbdb47d5c3eb98b951530bf01d

Re: bug#35137: [df] incorrect parsing of /proc/self/mountinfo with \r in mount path

2019-04-10 Thread Bernhard Voelker
On 4/10/19 4:15 AM, Paul Eggert wrote: > Bernhard Voelker wrote: > > +/* Find the next white space in STR, terminate the string there in place, > + and return that position. Otherwise return NULL. */ > + > +static char * > +terminate_at_blank (char const *str) > +{ > + char *s = NULL; > +