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

2019-04-09 Thread Bernhard Voelker
[adding gnulib, coming from https://bugs.gnu.org/35137] On 4/5/19 9:01 AM, Bernhard Voelker wrote: > On 4/4/19 9:52 AM, Zbigniew Jędrzejewski-Szmek wrote: >> See https://github.com/systemd/systemd/issues/12018 and >> https://github.com/karelzak/util-linux/issues/780 for additional context. >> >> $

bug#35212: problem docs vs. implementation

2019-04-09 Thread L A Walsh
My console becomes 121 characters wide when I turn on unicode, but stty says it is 132 characters. Looking at the stty manpage, I see: Special settings: ... * cols N tell the kernel that the terminal has N columns * columns N same as cols N --- I thought

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

2019-04-09 Thread Paul Eggert
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; + if ((s = strchr (str, ' ')) != NULL) +*s = '\0'; + retu