Re: + mm-utilc-add-kstrimdup.patch added to -mm tree

From: Alexey Dobriyan
Date: Mon Feb 03 2014 - 04:58:54 EST


On Sat, Feb 1, 2014 at 12:45 AM, <akpm@xxxxxxxxxxxxxxxxxxxx> wrote:
> kstrimdup() creates a whitespace-trimmed duplicate of the passed in
> null-terminated string. This is useful for strings coming from sysfs that
> often include trailing whitespace due to user input.

I think kernel should be strict in what it accepts, otherwise
case-insensivity and
what not will be added some day.

Shell will trim whitespace for you.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/