[sudo-commits] sudo changeset 10562:dac04f305262
Todd C. Miller
Todd.Miller at courtesan.com
Mon Jul 25 10:43:16 MDT 2016
changeset: 10562:dac04f305262 in /raid/repos/sudo
details: https://www.sudo.ws/repos/sudo/rev/dac04f305262
user: Todd C. Miller <Todd.Miller at courtesan.com>
date: Mon Jul 25 10:26:54 2016 -0600
Log Message:
On systems that lack the O_NOFOLLOW open(2) flag, check in
sudo_edit_open() whether the path to be opened is symlink before
opening it. This is racey but we detect losing the last post-open
and it is better to fail early if possible. When editing a link
to a non-existent file, a zero-length file will be left behind but
it is too dangerous to try and remove it after the fact.
Bug #753
diffstat:
src/sudo_edit.c | 18 ++++++++++++++++++
1 files changed, 18 insertions(+), 0 deletions(-)
More information about the sudo-commits
mailing list