Skip to content

gio-tool-mount: Return early on fgets EOF

Marco Trevisan requested to merge 3v1n0/glib:fgets-error-ignore into main

As per commit a5390002 we're exiting with error in case fgets failed, however it could also fail because of EOF (like on ^D), so in such case we can just return early treating it as a non-error.

Otherwise still exit with error.

Fixes: #2737 (closed)

Edited by Marco Trevisan

Merge request reports