]> granicus.if.org Git - sudo/commit
sudo_edit() must return a wait status but if there is an error, or
authorTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 5 Jun 2017 13:11:09 +0000 (07:11 -0600)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 5 Jun 2017 13:11:09 +0000 (07:11 -0600)
commit0d70e868f17234e486ee71f6dd0ff8fd8f38eb5f
tree9f251a4d97cf79c6e5a8e38ecef419ea61795d7f
parent26d9043bf4dd4bd7447b4caeeb5918e6827ace0a
sudo_edit() must return a wait status but if there is an error, or
even if no changes were made to the file, it was returning 1 instead
which would be interpreted as the command having received SIGHUP.
Use the W_EXITCODE() to construct a proper wait status in the error
case too.
src/sudo_edit.c