Skip to content

utils: fix infinite loop when reading from binary file

Beniamino Galvani requested to merge bg/read-line-loop into master

If the file is binary, g_io_channel_read_line() returns G_IO_STATUS_ERROR with error "Invalid byte sequence in conversion input" and we loop forever. Invert the loop condition.

Reported-by: Matteo Croce mcroce@redhat.com

Merge request reports