From ab59834a0053bd6d0a256a470c320ce1c6788ba4 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Mon, 5 Jun 2017 07:47:43 -0600 Subject: [PATCH] Don't treat an unchanged file as an error. From Xin Li. --- src/sudo_edit.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/sudo_edit.c b/src/sudo_edit.c index fb7ec7590..caf1446ae 100644 --- a/src/sudo_edit.c +++ b/src/sudo_edit.c @@ -700,7 +700,6 @@ sudo_edit_copy_tfiles(struct command_details *command_details, sudo_warnx(U_("%s unchanged"), tf[i].ofile); unlink(tf[i].tfile); close(tfd); - errors++; continue; } } -- 2.40.0