| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
| List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
| Sender: | cygwin-owner AT sources DOT redhat DOT com |
| Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
| Date: | Wed, 12 Jul 2000 14:57:12 -0400 |
| From: | Phil Edwards <pedwards AT disaster DOT jaj DOT com> |
| Message-Id: | <200007121857.OAA02428@disaster.jaj.com> |
| To: | cygwin AT sources DOT redhat DOT com |
| Subject: | Found a bug in hello world |
GNU Hello 1.3 gets caught in an infinite loop under Cygwin 1.1 when given
the -m (read mail) option.
The code is
do
{
sprintf (mailname, "%s/%s", *d, user);
mailfd = open (mailname, O_RDONLY);
} while (mailfd == -1 && (errno == ENOENT || errno == ENOTDIR));
None of the possible mailname's will ever be present, and thus mailfd will
always be -1. And I can't get gdb to admit that "errno" exists under Cygwin
(it tells me "no such symbol"), so I have no idea what's wrong there. But
the condition always succeeds.
Anyhow...
Phil
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |