Opened 5 years ago

#304 new defect

stat() and trailing dots

Reported by: komh 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 komh 5 years ago.
Patch for trailing dots

Download all attachments as: .zip

Change History (1)

Changed 5 years ago by komh

Patch for trailing dots

Note: See TracTickets for help on using tickets.