D10266: Improve error handling in file ioslave

Chinmoy Ranjan Pradhan noreply at phabricator.kde.org
Sat Feb 3 09:10:03 UTC 2018


chinmoyr created this revision.
chinmoyr added a reviewer: dfaure.
Restricted Application added a project: Frameworks.
Restricted Application added a subscriber: Frameworks.
chinmoyr requested review of this revision.

REVISION SUMMARY
  When executing an action with elevated privileges file ioslave directly checks errno
  and then decides whether to continue or not. Since errno can change frequently
  between function call it should not be relied upon.
  With this patch after a function fails errno value is saved and then that saved value
  is used wherever required.

REPOSITORY
  R241 KIO

BRANCH
  master

REVISION DETAIL
  https://phabricator.kde.org/D10266

AFFECTED FILES
  src/ioslaves/file/file.cpp
  src/ioslaves/file/file.h
  src/ioslaves/file/file_p.h
  src/ioslaves/file/file_unix.cpp
  src/ioslaves/file/file_win.cpp

To: chinmoyr, dfaure
Cc: #frameworks, michaelh, ngraham
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20180203/5f049e9e/attachment.html>


More information about the Kde-frameworks-devel mailing list