]> granicus.if.org Git - sudo/commit
The condition for adding a missing newline at the end of sudoers
authorTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 18 Aug 2015 14:57:53 +0000 (08:57 -0600)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 18 Aug 2015 14:57:53 +0000 (08:57 -0600)
commit7df24871650c95a0e769f8b0f314257f7ddb1cb2
tree1388e63d848d91de8276a62381c206ff79c3fac0
parent7ef9b5827e6329e76847e13ff4c993a0d60bffbb
The condition for adding a missing newline at the end of sudoers
was never reached.  Keep track of the last character and write a
newline character if when copying to the temp file.  Found by Radovan
Sroka.
plugins/sudoers/visudo.c