]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/basic/fileio.c
fileio: minor tweak to executable_is_script()
authorLennart Poettering <lennart@poettering.net>
Sat, 30 Dec 2017 14:44:29 +0000 (15:44 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 4 Jan 2018 12:28:24 +0000 (13:28 +0100)
commit99c61f6b00f0544a61dd45536de8c92cbc91d9a7
tree5233b5a47b760c6761c4347e3b9c5edb67cac179
parent91dc2bf74dee032512f20070f33d37abeca74f38
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