get_maintainer.pl: unexpected behaviour for path/to//file
From: Emil Velikov
Date: Fri May 15 2020 - 06:54:52 EST
Hi Joe,
Recently I've noticed that get_maintainer behaves differently if there
is a double, sequential, forward slash in the path.
AFAICT there should be no distinction between the two. Or at least many
existing applications and scripts consider them one and the same.
I've tried fixing this, although my perl isn't quite up-to scratch.
Is this some weird bug or some intended feature?
Thanks
Emil
Example:
./scripts/get_maintainer -F drivers/gpu/drm//lima
David Airlie <airlied@xxxxxxxx> (maintainer:DRM DRIVERS)
Daniel Vetter <daniel@xxxxxxxx> (maintainer:DRM DRIVERS,commit_signer:3/42=7%)
Qiang Yu <yuq825@xxxxxxxxx> (commit_signer:36/42=86%,authored:24/42=57%)
Vasily Khoruzhick <anarsoul@xxxxxxxxx> (commit_signer:26/42=62%)
Krzysztof Kozlowski <krzk@xxxxxxxxxx> (commit_signer:5/42=12%,authored:5/42=12%)
Emil Velikov <emil.velikov@xxxxxxxxxxxxx> (commit_signer:4/42=10%)
dri-devel@xxxxxxxxxxxxxxxxxxxxx (open list:DRM DRIVERS)
linux-kernel@xxxxxxxxxxxxxxx (open list)
./scripts/get_maintainer -F drivers/gpu/drm/lima
Qiang Yu <yuq825@xxxxxxxxx> (maintainer:DRM DRIVERS FOR LIMA)
David Airlie <airlied@xxxxxxxx> (maintainer:DRM DRIVERS)
Daniel Vetter <daniel@xxxxxxxx> (maintainer:DRM DRIVERS)
dri-devel@xxxxxxxxxxxxxxxxxxxxx (open list:DRM DRIVERS FOR LIMA)
lima@xxxxxxxxxxxxxxxxxxxxx (moderated list:DRM DRIVERS FOR LIMA)
linux-kernel@xxxxxxxxxxxxxxx (open list)