summaryrefslogtreecommitdiff
path: root/sys/kern/exec_script.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2015-02-27 12:17:37 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2015-02-27 12:17:37 +0000
commitbb2086d89dd86f06c7047f6935f9dee462ffd0a9 (patch)
tree9c718e73664e74d4960fc04bb807fc91d3147c52 /sys/kern/exec_script.c
parent2858b292db465cf9b45f4a1e02bd496c0c14ab35 (diff)
Do not use the name returned by getlogin() when pw_uid from
getpwnam(getlogin()) doesn't match the real uid, unless the real uid is 0. This matches the behavior of sendmail and gives the corrent sender for mail sent by daemons that got started by a user who su'd or used sudo. OK dlg@ gilles@
Diffstat (limited to 'sys/kern/exec_script.c')
0 files changed, 0 insertions, 0 deletions