Revert "diff: eliminate a useless lseek"

This changes breaks when one of the files is stdin

This reverts commit fa977a3b2b.

Reported by:	olivier
This commit is contained in:
Baptiste Daroussin 2021-02-02 10:07:57 +01:00
parent 5ea878684f
commit c69047ca75

View File

@ -490,6 +490,7 @@ opentemp(const char *f)
}
}
close(ifd);
lseek(ofd, (off_t)0, SEEK_SET);
return (fdopen(ofd, "r"));
}