Page MenuHomeFreeBSD

Refine the dirname(3) compatibility workaround a bit more.
ClosedPublic

Authored by ed on Sep 9 2016, 7:18 PM.
Tags
None
Referenced Files
Unknown Object (File)
Nov 5 2024, 10:23 AM
Unknown Object (File)
Nov 5 2024, 10:19 AM
Unknown Object (File)
Nov 5 2024, 10:19 AM
Unknown Object (File)
Nov 4 2024, 2:50 PM
Unknown Object (File)
Nov 4 2024, 2:50 PM
Unknown Object (File)
Nov 4 2024, 2:50 PM
Unknown Object (File)
Nov 4 2024, 2:31 PM
Unknown Object (File)
Nov 3 2024, 7:40 AM
Subscribers

Details

Summary

Right now our workaround is so good that it doesn't throw any warnings
on misuse. This means that people will keep on using the old version
of dirname(3) silently without fixing their code.

Go ahead and change the prototype of __old_dirname() to also use a plain
char *, so that we still get a compiler warning.

Diff Detail

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

Event Timeline

ed retitled this revision from to Refine the dirname(3) compatibility workaround a bit more..
ed updated this object.
ed edited the test plan for this revision. (Show Details)
ed added reviewers: bdrewery, madpilot.
This revision was automatically updated to reflect the committed changes.