Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/usr.bin/su



Module Name:    src
Committed By:   riastradh
Date:           Mon Nov 30 02:22:39 UTC 2026

Modified Files:
        src/usr.bin/su: su.c

Log Message:
su(1): Fix kerberized path with MKPAM=no MKKERBEROS=yes.

Fixes:

        $ su riastradh
        riastradh%EXAMPLE.COM@localhost's Password:
        su: chown 0x7e3294e318a0: No such file or directory

After using the target user's password to get credentials (that is, a
ticket-granting ticket) into an in-memory cache and verifying the
credentials are valid, don't copy them into _another_ in-memory cache
and then chown it -- that makes no sense and doesn't work.  Instead,
copy them into a _file_ cache.

This was broken in 2012 with a build fix that apparently nobody has
ever tested since:

https://mail-index.netbsd.org/source-changes/2012/04/12/msg033638.html

PR bin/61091: MKPAM=no kerberized su(1) is busted


To generate a diff of this commit:
cvs rdiff -u -r1.75 -r1.76 src/usr.bin/su/su.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index