Opened 10 years ago

Last modified 10 years ago

#331 new defect

dup() for a directory handle does not work

Reported by: KO Myung-Hun 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 by KO Myung-Hun, 10 years ago

dup2(), too.

Note: See TracTickets for help on using tickets.