Source-Changes archive

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

CVS commit: src/usr.bin/whereis



Module Name:    src
Committed By:   jschauma
Date:           Sun Jun  1 15:45:31 UTC 2025

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

Log Message:
PR bin/59449: use setregid(2)/setreuid(2) instead of setgid(2)/setuid(2)

This allows the calls to succeed when a non-root user runs
with e[gu]id != [gu]id and then produce the correct output.

Fix suggested by @kre.


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/usr.bin/whereis/whereis.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