K 10 svn:author V 7 git2svn K 8 svn:date V 27 2022-11-18T21:00:36.485716Z K 7 svn:log V 548 dma: use canonical getline() loop getline() returns -1 on erorr or EOF, so use that condition instead of feof() and check that there was no error after the loop exits. Reviewed by: bapt, kevans (both earlier) MFC after: 3 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D34159 (cherry picked from commit d21e71efce3963b068ccaa807a099b591dc220e9) (cherry picked from commit 2e8403e0215868a13e2bdd1c979fc351971b8d91) Git Hash: 166551aa4da5705fa7d58c7aaefbcc472e5cdd03 Git Author: emaste@FreeBSD.org END