Re: [patch] get_maintainer: handle file names beginning with ./

From: Dan Carpenter
Date: Fri Jan 08 2016 - 08:44:15 EST


On Fri, Jan 08, 2016 at 03:37:56AM -0800, Joe Perches wrote:
> On Fri, 2016-01-08 at 13:51 +0300, Dan Carpenter wrote:
> > The problem is that get_maintainer.pl doesn't work if you have a ./
> > prefix on the filename.  For example, if you type:
> >
> >     ./scripts/get_maintainer.pl -f ./drivers/usb/usb-skeleton.c
>
> Someone's been feeding find output to get_maintainer?

Yep.

>
> Then maybe you'd also have to consider fully qualified
> file names, tilde expansion, $PWD, and probably a bunch
> of other things too.

I don't think you'd "have" to consider those as well, but I won't stand
in your way if you want to...

regards,
dan carpenter