]> git.baikalelectronics.ru Git - kernel.git/commit
get_maintainer: Don't check if STDIN exists in a VCS repository
authorJoe Perches <joe@perches.com>
Wed, 10 Aug 2016 15:45:11 +0000 (08:45 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 10 Aug 2016 17:42:00 +0000 (10:42 -0700)
commitca37614b0d7b289d5c0a25c76442394faf60b5dc
tree558f9c961b03ec47153adac4737c351c2373b48a
parent1ce6e7248e34c4f35e6a330cc6f352454db3d6aa
get_maintainer: Don't check if STDIN exists in a VCS repository

If get_maintainer is not given any filename arguments on the command line,
the standard input is read for a patch.

But checking if a VCS has a file named &STDIN is not a good idea and fails.

Verify the nominal input file is not &STDIN before checking the VCS.

Fixes: 66fe4c45ed12 ("get_maintainer.pl: reduce need for command-line option -f")
Reported-by: Christopher Covington <cov@codeaurora.org>
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/get_maintainer.pl