summaryrefslogtreecommitdiffstats
path: root/usr.bin/file/readelf.c
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2000-11-05 07:31:17 +0000
committermarcel <marcel@FreeBSD.org>2000-11-05 07:31:17 +0000
commit228f80f471a6aac4a4c41ef71a5360e9d3385365 (patch)
tree2651d5af1eb4e49cda0b297e737ebb9f9aad0388 /usr.bin/file/readelf.c
parent229a59bc61fb77ffa0216a1c84d309b633f2f0dc (diff)
downloadFreeBSD-src-228f80f471a6aac4a4c41ef71a5360e9d3385365.zip
FreeBSD-src-228f80f471a6aac4a4c41ef71a5360e9d3385365.tar.gz
Fix getdents syscall.
The offset field in struct dirent was set to the offset of the next dirent in rev 1.36. The offset was calculated from the current offset and the record length. This offset does not necessarily match the real offset when we are using cookies. Therefore, also use the cookies to set the offset field in struct dirent if we're using cookies to iterate through the dirents.
Diffstat (limited to 'usr.bin/file/readelf.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud