chiark / gitweb /
fileio: minor tweak to executable_is_script()
authorLennart Poettering <lennart@poettering.net>
Sat, 30 Dec 2017 14:44:29 +0000 (15:44 +0100)
committerSven Eden <yamakuzure@gmx.net>
Wed, 30 May 2018 05:49:53 +0000 (07:49 +0200)
commit186497534baebff85a9413f50a26eaf98520b63d
treeb5b52fb6670c397adc9655b6fbec65c5d040c3f8
parent6eeef058d5cb544c567ebc53b8e02d67d33080c9
fileio: minor tweak to executable_is_script()

If read_line() returns ENOBFUS this means the line was overly long. When
we use this for checking whether an executable is a script, then this
shouldn't be propagated as-is, but simply as "this is not a script".
src/basic/fileio.c