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
F132706611: D7844.diff
Sun, Oct 19, 5:24 AM
Unknown Object (File)
Fri, Oct 17, 1:29 AM
Unknown Object (File)
Thu, Oct 16, 5:38 PM
Unknown Object (File)
Sun, Oct 12, 1:22 AM
Unknown Object (File)
Tue, Oct 7, 9:10 AM
Unknown Object (File)
Aug 17 2025, 10:33 PM
Unknown Object (File)
Jul 29 2025, 9:05 AM
Unknown Object (File)
Jul 28 2025, 11:37 PM
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.