diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2017-06-21 14:19:45 +0300 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2017-06-21 14:19:45 +0300 |
commit | 546742e5e8544fb42aa65744d719100b5e32dee4 (patch) | |
tree | 2d3ccd186b8ccb02cd134af845cc41aa04e1ff00 /debian/patches/skip-noedit.diff | |
download | sudo-debian/1.8.19p1-2.1.tar.gz |
Imported sudo 1.8.19p1-2.1debian/1.8.19p1-2.1debian
Diffstat (limited to 'debian/patches/skip-noedit.diff')
-rw-r--r-- | debian/patches/skip-noedit.diff | 12 |
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 |