This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

findutils-4.5.4-1 problem (updatedb crashing)

This problem has already been reported on 7/22/2009 9:37 PM, but I think to have found the reason for it.
Unfortunately I am not able to put together a patch; -- never done one.
What follows is the message I get when running updatedb:
assertion "ent->fts_info == FTS_NSOK || state.type != 0" failed: file "/usr/src/findutils-4.5.4-1/src/findutils-4.5.4/find/ftsfind.c", line 475, function: consider_visiting.
I have downloaded the sources tarball for findutils-4.5.4-1 and checked line 475 of ftsfind.c. The block of code line 475 is part of, follows:

/* Cope with the usual cases. */
if (ent->fts_info == FTS_NSOK
|| ent->fts_info == FTS_NS /* e.g. symlink loop */) (THIS IS LINE 475)
assert (!state.have_stat);
assert (ent->fts_info == FTS_NSOK || state.type != 0);
mode = state.type;

I can write some c but am not an expert by a long shot, however there is a comment INSIDE the conditional statement; is that legal c?
I hope to have been helpful rather than annoying, and hope this was the right list to write to.
Thankyou for your attention.
Regards Marian <>

-- Problem reports: FAQ: Documentation: Unsubscribe info:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]