summaryrefslogtreecommitdiff
path: root/debian/patches/skip-noedit.diff
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/skip-noedit.diff')
-rw-r--r--debian/patches/skip-noedit.diff12
1 files changed, 12 insertions, 0 deletions
diff --git a/debian/patches/skip-noedit.diff b/debian/patches/skip-noedit.diff
new file mode 100644
index 0000000..569bc13
--- /dev/null
+++ b/debian/patches/skip-noedit.diff
@@ -0,0 +1,12 @@
+Skip installing/unlinking files without doedit set
+--- a/plugins/sudoers/visudo.c
++++ b/plugins/sudoers/visudo.c
+@@ -247,6 +247,8 @@
+
+ /* Install the sudoers temp files. */
+ tq_foreach_fwd(&sudoerslist, sp) {
++ if (!sp->doedit)
++ continue;
+ if (!sp->modified)
+ (void) unlink(sp->tpath);
+ else