[sudo-commits] sudo changeset 12366:aef4db03e9e1
Todd C. Miller
Todd.Miller at sudo.ws
Fri Apr 17 19:37:55 MDT 2020
changeset: 12366:aef4db03e9e1 in /raid/repos/sudo
details: https://www.sudo.ws/repos/sudo/rev/aef4db03e9e1
user: Todd C. Miller <Todd.Miller at sudo.ws>
date: Fri Apr 17 19:08:56 2020 -0600
Log Message:
Extend the original file before to the new size before updating it.
Instead of opening the original file for writing w/ tuncation, we
first extend the file with zeroes (by writing, not seeking), then
overwrite it. This should allow sudo to fail early if the disk is
out of space before it overwrites the original file.
diffstat:
src/sudo_edit.c | 93 +++++++++++++++++++++++++++++++++++++++++++++++---------
1 files changed, 77 insertions(+), 16 deletions(-)
More information about the sudo-commits
mailing list