Messages in this thread | | | Date | Mon, 3 Feb 2014 12:58:45 +0300 | Subject | Re: + mm-utilc-add-kstrimdup.patch added to -mm tree | From | Alexey Dobriyan <> |
| |
On Sat, Feb 1, 2014 at 12:45 AM, <akpm@linux-foundation.org> 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.
| |