Opened 10 years ago

#304 new defect

stat() and trailing dots

Reported by: KO Myung-Hun Owned by:
Priority: normal Milestone: libc-0.7
Component: libc Version: 0.6.5
Severity: normal Keywords:
Cc:

Description

Hi/2.

If passing a name with trailing dots to stat(), then stat() fails. Any other compilers do not fail.

For examples, assume that there is a file, stat.c. Then, stat() for stat.c succeeds, but for stat.c. fails. Of course, all the trailing dots should be ignored.

Attachments (1)

remove-trailing-dots.diff (674 bytes ) - added by KO Myung-Hun 10 years ago.
Patch for trailing dots

Download all attachments as: .zip

Change History (1)

by KO Myung-Hun, 10 years ago

Attachment: remove-trailing-dots.diff added

Patch for trailing dots

Note: See TracTickets for help on using tickets.