Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6D665C433F5 for ; Tue, 11 Jan 2022 18:05:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242718AbiAKSFn (ORCPT ); Tue, 11 Jan 2022 13:05:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350348AbiAKSEr (ORCPT ); Tue, 11 Jan 2022 13:04:47 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ED221C06173F; Tue, 11 Jan 2022 10:04:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=zwqdfzt0DvYRTdP2ErkEoVOuQqsqbbhd1smOWlFrSmE=; b=mBINxuzg8tFsgoOPBV7fvEZrfI MQoCJugSueIJpN0/jjrJnV7lDRcRvKOQdpxazSM8qkJeS0xWXFVWxAm+iB+naf3JdeTo5exWOykdB bIi1ZlitMZmdTrRspVsUs0vslyODqJheHKmJQ32IkdbhZ49f7TwMEJrMNKKkDyIq+Ih0R9vD/i3am SLMRG5E04j3iLRMB33nfBj4p4m9+sdlOS4/VCpFJtyFWUOoBIynNhJwgjl4pZtunPkiMYV0zacchL Rk+zOB+2U8D9cEO7JNJlgViv7IdYs3Hn5x5PEnNBOjQVOWH1rILH+PLVlL2kZjjhSybPRW1qovhMn nqke/l6A==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1n7LVi-00HE20-NH; Tue, 11 Jan 2022 18:04:42 +0000 Date: Tue, 11 Jan 2022 10:04:42 -0800 From: Luis Chamberlain To: Geert Uytterhoeven , Andrew Morton Cc: Kees Cook , Iurii Zaikin , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH] sysctl: Fix duplicate path separator in printed entries Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: Luis Chamberlain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 07, 2022 at 11:38:44AM +0100, Geert Uytterhoeven wrote: > sysctl_print_dir() always terminates the printed path name with a slash, > so printing a slash before the file part causes a duplicate like in > > sysctl duplicate entry: /kernel//perf_user_access > > Fix this by dropping the extra slash. > > Signed-off-by: Geert Uytterhoeven Acked-by: Luis Chamberlain Luis