[PATCH] Put workaround in catclose too
Ulrich Drepper
drepper@redhat.com
Thu Aug 9 15:38:00 GMT 2001
Jakub Jelinek <jakub@redhat.com> writes:
> tcsh is broken and I'm afraid many other apps are too in that they don't
> bother checking whether catopen returned -1.
Actually, those applications are not broken. It is far to bothersome
to write something like
if (cat != (nl_catd) -1)
printf (catgets (1, 1, 2, "foo"));
else
printf ("foo");
(and similarly for catclose). Therefore the test is needed.
--
---------------. ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Red Hat `--' drepper at redhat.com `------------------------
More information about the Libc-hacker
mailing list