Opened 4 years ago

Last modified 4 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:
Cc:

Description

Hi/2.

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 4 years ago by komh

dup2(), too.

Note: See TracTickets for help on using tickets.