mirror of
https://github.com/versity/scoutfs.git
synced 2026-01-04 19:34:00 +00:00
getline() allocates the space for the return value even if there is an error, so when it returns an error, we still have to free() it. In el9, when reading stdin we will get errno=0 returned (no error) when we hit the end of stdin. This behavior is different from el7/8. We don't want to throw an error here to avoid failing the test, since it doesn't. Signed-off-by: Auke Kok <auke.kok@versity.com>