Re: [PATCH] sysctl: Fix duplicate path separator in printed entries

From: Luis Chamberlain
Date: Tue Jan 11 2022 - 13:05:45 EST


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 <geert+renesas@xxxxxxxxx>

Acked-by: Luis Chamberlain <mcgrof@xxxxxxxxxx>

Luis