From: Ken Hornstein Date: Wed, 23 Aug 2017 16:08:24 +0000 (-0400) Subject: Make sure we return the descriptor from the file handle. Noted by X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/15fde7dd84cc29c054857e5d8a7fdd4a8db10a97?hp=bf3160aa94f981374f0c6353344fd68a4e1daa12 Make sure we return the descriptor from the file handle. Noted by Ralph Corderoy. --- diff --git a/uip/mhparse.c b/uip/mhparse.c index 0eb474ae..4a031b0e 100644 --- a/uip/mhparse.c +++ b/uip/mhparse.c @@ -2892,7 +2892,7 @@ openURL (CT ct, char **file) fseeko(ce->ce_fp, 0, SEEK_SET); *file = ce->ce_file; - return fd; + return fileno(ce->ce_fp); }