Your message dated Fri, 12 Aug 2011 12:08:25 +0200
with message-id <[email protected]>
and subject line Bug#407454 fixed in version 1:3.1.7.dfsg-1
has caused the Debian Bug report #407454,
regarding gawk: bails out with fatal error on getline x < f if f is a dir
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
407454: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=407454
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: gawk
Version: 1:3.1.5.dfsg-4
Severity: important

hi,

I think gawk does the wrong thing here, and badly since you'd expect to 
catch and handle the situation in the .awk but instead you're kicked out.

According to manpage:

       The  getline command returns 0 on end of file and -1 on an
       error.  Upon an error, ERRNO contains a string  describing
       the problem.

which means that program shouldn't fail, only that return code and ERRNO 
should be set properly.

BTW, the manpage is incomplete wrt getline, it should also mention that 
getline return 1 on normal read - eg:

       The  getline command returns 1 on normal (successful) read, 0 on 
       end of file and -1 on an error.  Upon an error, ERRNO contains a 
       string  describing the problem.

thanks
--
paolo



--- End Message ---
--- Begin Message ---
Package: gawk
Version: 1:3.1.7.dfsg-1

This bug has been fixed upstream in release 3.1.7.
The corresponding changelog entry:

> Mon Jan  5 22:48:39 2009  Arnold D. Robbins  <[email protected]>
> 
>         * io.c (redirect): A getline from a directory is no longer
>         fatal; instead it returns -1. Thanks to Paolo <[email protected]>
>         for the report.

Regards,
-- 
Jeroen Schot


--- End Message ---

Reply via email to