<table><tr><td style="">mgerstner created this revision.<br />Herald added projects: Kate, Frameworks.<br />Herald added subscribers: kde-frameworks-devel, kwrite-devel.<br />mgerstner requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D19001">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>This change breaks up the rather large <tt style="background: #ebebeb; font-size: 13px;">TextBuffer::save()</tt> into separate<br />
functions. Most notably the privileged code path that requires a D-Bus<br />
helper invocation is now better separated from the unprivileged local<br />
code path.</p>
<p>This change also introduces a small change in behaviour: If file open<br />
failed for other reasons than lacking permissions the invocation of the<br />
D-Bus helper is skipped, since there is no hope of the helper helping us<br />
in this case.</p>
<p>This is preparatory work for further security related improvements<br />
of the katetextbuffer privilege escalation handling.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R39 KTextEditor</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D19001">https://phabricator.kde.org/D19001</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/buffer/katetextbuffer.cpp<br />
src/buffer/katetextbuffer.h</div></div></div><br /><div><strong>To: </strong>mgerstner<br /><strong>Cc: </strong>kwrite-devel, kde-frameworks-devel, gennad, michaelh, ngraham, bruns, demsking, cullmann, sars, dhaumann<br /></div>