Opened 11 years ago
Last modified 11 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.
Note:
See TracTickets
for help on using tickets.

dup2(), too.