Re: [Xen-devel] [PATCH 12/12] scripts/get_maintainer.pl: Print proper error message for missing $file

2018-03-13 Thread Paolo Bonzini
On 08/03/2018 20:03, Ian Jackson wrote: > If you pass scripts/get_maintainer.pl the name of a FIFO or other > exciting object (/dev/stdin, for example), it would falsely print > "file not found". Instead: stat the object rather than using -f so > that we do not mind if the object is not a file; an

[Xen-devel] [PATCH 12/12] scripts/get_maintainer.pl: Print proper error message for missing $file

2018-03-08 Thread Ian Jackson
If you pass scripts/get_maintainer.pl the name of a FIFO or other exciting object (/dev/stdin, for example), it would falsely print "file not found". Instead: stat the object rather than using -f so that we do not mind if the object is not a file; and print the errno value in the error message. S