On Sun, May 13, 2012 at 03:14:49PM -0400, Dave Reisner wrote: > Checking for the null byte at the end of the string only conditionally > leads to segfaults, evidenced by mount helpers crashing on writes to Ah.. sorry. > /run/mount/utab. Simply check for the null on each iteration, and append > a null byte to the mangled string before breaking. > > Signed-off-by: Dave Reisner <dreisner@xxxxxxxxxxxxx> > --- > lib/mangle.c | 9 +++++---- > 1 file changed, 5 insertions(+), 4 deletions(-) Applied, thanks! Karel -- Karel Zak <kzak@xxxxxxxxxx> http://karelzak.blogspot.com -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html