Page MenuHomeFreeBSD

Make code compile when basename() is POSIX compliant.
ClosedPublic

Authored by ed on May 19 2016, 8:02 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Mar 20, 11:23 AM
Unknown Object (File)
Mar 8 2025, 7:47 AM
Unknown Object (File)
Mar 8 2025, 4:34 AM
Unknown Object (File)
Mar 8 2025, 2:58 AM
Unknown Object (File)
Mar 8 2025, 1:33 AM
Unknown Object (File)
Feb 21 2025, 8:08 AM
Unknown Object (File)
Jan 9 2025, 8:52 PM
Unknown Object (File)
Dec 26 2024, 9:16 AM
Subscribers

Details

Summary

The POSIX basename() function is allowed to modify its input buffer,
which means its argument is "char *". Pull a copy of the input string
before computing the base.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ed retitled this revision from to Make code compile when basename() is POSIX compliant..
ed updated this object.
ed edited the test plan for this revision. (Show Details)
ed added reviewers: pfg, jtl.
jtl edited edge metadata.
This revision is now accepted and ready to land.May 25 2016, 1:12 AM
This revision was automatically updated to reflect the committed changes.