Don't complain about an early end-of-file in the -r case rather than

the opposite. Does this pointy hat look good on me?
This commit is contained in:
Tony Finch 2003-03-04 21:22:05 +00:00
parent 263067951a
commit 4364d4c485

View File

@ -308,7 +308,7 @@ getline(char *buf, size_t size)
{
if (fgets(buf, size, infp) != NULL)
return (2);
if (!rflag)
if (rflag)
return (0);
warnx("%s: %s: short file", infile, outfile);
return (1);