#819 closed defect (fixed)

symbol clash in ttyname.c and ttyname_r.c

Reported by: strauman Owned by: Jennifer Averett
Priority: high Milestone: 2
Component: fs Version: 4.6
Severity: critical Keywords:
Cc: bugs@…, ralf.corsepius@… Blocked By:
Blocking:

Description

ttyname.c and ttyname_r.c contain the same code, i.e., both implement 'ttyname' and 'ttyname_r'. However, the version of 'ttyname_r' in 'ttyname_r.c' contains a bug: 'closedir()' is called twice on the same directory.

Usually, the resulting name clash is not observed (and the bug neither) because the linker resolves the first encountered version, i.e., it links 'ttyname.o'

Release:
4.6.2 (and head)

Change History (1)

comment:1 Changed on 08/31/05 at 03:36:45 by Ralf Corsepius

Status: assignedclosed

State-Changed-From-To: open->closed
State-Changed-Why: ttyname_r.c removed.
ttyname.c copyright notice updated from FreeBSD.
Both on branch and HEAD

Note: See TracTickets for help on using tickets.