Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 51132 - telldir(), seekdir(), telldir() does not result in same location
telldir(), seekdir(), telldir() does not result in same location
Product: Red Hat Linux
Classification: Retired
Component: glibc (Show other bugs)
i686 Linux
medium Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
Aaron Brown
Depends On:
  Show dependency treegraph
Reported: 2001-08-07 15:10 EDT by John Kohl
Modified: 2016-11-24 09:53 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2004-10-01 11:35:08 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
source code of seekdir/telldir test (10.26 KB, text/plain)
2001-08-07 15:11 EDT, John Kohl
no flags Details

External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2001:121 normal SHIPPED_LIVE GNU C Library bugfix update 2001-10-04 00:00:00 EDT

  None (edit)
Description John Kohl 2001-08-07 15:10:37 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.74 [en] (X11; U; SunOS 5.7 sun4u)

Description of problem:
Something is fishy in seekdir() and/or telldir().
A regression test we use for testing our own file system works great on
every other UNIX we've tried it on, but on Linux it gets failures
due to something in how seekdir() and telldir() manage their directory
offset values.   A telldir() followed by a seekdir() to that location and
telldir() does not yield the same directory offset value.

How reproducible:

Steps to Reproduce:
1. compile the attached program
2. run it like so: "seekdir <dirname>" (no pathname separators in the
dirname, please)

Actual Results:  It complains about fishy results.

Expected Results:  Nothing should be printed.

Additional info:
Comment 1 John Kohl 2001-08-07 15:11:28 EDT
Created attachment 26693 [details]
source code of seekdir/telldir test
Comment 2 Jakub Jelinek 2001-08-07 17:06:45 EDT
Should be fixed by http://sources.redhat.com/ml/libc-hacker/2001-08/msg00025.html
Comment 3 Jakub Jelinek 2001-08-17 14:08:38 EDT
Should be fixed in glibc-2.2.4-5.
Comment 4 Benjamin Kosnik 2004-10-01 11:35:08 EDT

Note You need to log in before you can comment on or make changes to this bug.