Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751948AbaBCJ6s (ORCPT ); Mon, 3 Feb 2014 04:58:48 -0500 Received: from mail-lb0-f180.google.com ([209.85.217.180]:33662 "EHLO mail-lb0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751010AbaBCJ6q (ORCPT ); Mon, 3 Feb 2014 04:58:46 -0500 MIME-Version: 1.0 In-Reply-To: <52ec195e.P8S/D298ZeaBLTvn%akpm@linux-foundation.org> References: <52ec195e.P8S/D298ZeaBLTvn%akpm@linux-foundation.org> Date: Mon, 3 Feb 2014 12:58:45 +0300 Message-ID: Subject: Re: + mm-utilc-add-kstrimdup.patch added to -mm tree From: Alexey Dobriyan To: Linux Kernel Cc: mm-commits@vger.kernel.org, David Rientjes , Joe Perches , sebastian.capella@linaro.org Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Feb 1, 2014 at 12:45 AM, 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/