Page MenuHomeFreeBSD

libc: Use secure_getenv(3) where appropriate
ClosedPublic

Authored by markj on Mar 26 2023, 4:51 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, May 20, 5:05 PM
Unknown Object (File)
Mon, May 20, 5:05 PM
Unknown Object (File)
Mon, May 20, 5:05 PM
Unknown Object (File)
Fri, May 17, 11:50 AM
Unknown Object (File)
Fri, May 10, 9:15 PM
Unknown Object (File)
Sun, May 5, 6:06 PM
Unknown Object (File)
Apr 26 2024, 8:58 PM
Unknown Object (File)
Mar 6 2024, 3:17 AM

Details

Summary

No functional change intended.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 50594
Build 47485: arc lint + arc unit

Event Timeline

markj requested review of this revision.Mar 26 2023, 4:51 PM
markj created this revision.
This revision is now accepted and ready to land.Mar 26 2023, 5:46 PM

Did you use coccinelle (sp?) to find all these?

In D39278#894202, @imp wrote:

Did you use coccinelle (sp?) to find all these?

No, just cscope. I think it'd be tricky to write a coccinelle script for this since there's quite a few syntactic variations to look for. Maybe it's easier than I think though, I've only written a couple of scripts with it.

This revision was automatically updated to reflect the committed changes.

Cross-builds on GitHub are failing for macOS, as secure_getenv() does not exist. Should I add it to tools/build/cross-build/include/mac/stdlib.h?

Cross-builds on GitHub are failing for macOS, as secure_getenv() does not exist. Should I add it to tools/build/cross-build/include/mac/stdlib.h?

Oops, thanks for the report. I suspect that'd be sufficient, yes. I started a CI run with that change and will push it if the build completes.

Cross-builds on GitHub are failing for macOS, as secure_getenv() does not exist. Should I add it to tools/build/cross-build/include/mac/stdlib.h?

Oops, thanks for the report. I suspect that'd be sufficient, yes. I started a CI run with that change and will push it if the build completes.

https://reviews.freebsd.org/D39295