NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
PR/59449 CVS commit: src/usr.bin/whereis
The following reply was made to PR bin/59449; it has been noted by GNATS.
From: "Jan Schaumann" <jschauma%netbsd.org@localhost>
To: gnats-bugs%gnats.NetBSD.org@localhost
Cc:
Subject: PR/59449 CVS commit: src/usr.bin/whereis
Date: Sun, 1 Jun 2025 15:45:31 +0000
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