Opened 5 years ago

Last modified 5 years ago

#331 new defect

dup() for a directory handle does not work

Reported by: komh Owned by:
Priority: normal Milestone: libc-0.7
Component: libc Version: 0.6.6
Severity: normal Keywords:



If trying to dup() a directory handle, it fails.

For examples,

    fd = open(".", O_RDONLY);
    dupfd = dup(fd);

Then, dupfd will be -1.

Change History (1)

comment:1 Changed 5 years ago by komh

dup2(), too.

Note: See TracTickets for help on using tickets.