Page MenuHomeFreeBSD

pam_krb5: fix the GCC build
ClosedPublic

Authored by ivy on Sun, Jul 27, 5:16 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Aug 7, 5:57 PM
Unknown Object (File)
Tue, Aug 5, 12:17 PM
Unknown Object (File)
Tue, Aug 5, 8:41 AM
Unknown Object (File)
Tue, Aug 5, 7:27 AM
Unknown Object (File)
Fri, Aug 1, 3:27 PM
Unknown Object (File)
Tue, Jul 29, 9:00 AM
Unknown Object (File)
Tue, Jul 29, 7:39 AM
Unknown Object (File)
Tue, Jul 29, 4:36 AM
Subscribers

Details

Summary

GCC doesn't recognise
-Wno-error=incompatible-pointer-types-discards-qualifiers.

Remove it and just fix the error instead: our pam_message does not have
a const msg member.

Diff Detail

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

Event Timeline

ivy requested review of this revision.Sun, Jul 27, 5:16 PM

The real question is, why are we using this module instead of our own?

according to https://lists.freebsd.org/archives/dev-commits-src-all/2025-May/055576.html,

The reason for this import is to provide an MIT KRB5 compatible
pam_krb5 PAM module. The existing pam_krb5 in FreeBS only works
with Heimdal.
emaste added a subscriber: emaste.

We can sort out whether this code should exist separately; this change seems reasonable given that it does currently exist in the tree.

This revision is now accepted and ready to land.Thu, Jul 31, 10:13 PM
This revision was automatically updated to reflect the committed changes.