Don't treat an unchanged file as an error. From Xin Li.
This commit is contained in:
@@ -700,7 +700,6 @@ sudo_edit_copy_tfiles(struct command_details *command_details,
|
|||||||
sudo_warnx(U_("%s unchanged"), tf[i].ofile);
|
sudo_warnx(U_("%s unchanged"), tf[i].ofile);
|
||||||
unlink(tf[i].tfile);
|
unlink(tf[i].tfile);
|
||||||
close(tfd);
|
close(tfd);
|
||||||
errors++;
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user