ikrt_readdir bugs

Bug #358538 reported by Derick Eddington
2
Affects Status Importance Assigned to Milestone
Ikarus Scheme
Fix Committed
Undecided
Abdulaziz Ghuloum

Bug Description

ikrt_readdir added in r1763 has some bugs:

gcc -DHAVE_CONFIG_H -I. -I.. -I../../src -g -O2 -DNDEBUG -O3 -Wall -MT ikarus-io.o -MD -MP -MF .deps/ikarus-io.Tpo -c -o ikarus-io.o ../../src/ikarus-io.c
../../src/ikarus-io.c: In function ‘ikrt_readdir’:
../../src/ikarus-io.c:398: error: ‘struct dirent’ has no member named ‘d_namlen’

The d_namlen field is not POSIX and my Ubuntu doesn't have it.

The return from the C readdir function needs to be checked for error.

Attached is a patch to fix these.

Related branches

Revision history for this message
Derick Eddington (derick-eddington) wrote :
Revision history for this message
Abdulaziz Ghuloum (aghuloum) wrote :

Applied patch in rev 1764. Thanks Derick.

Changed in ikarus:
assignee: nobody → aghuloum
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.