Diffusion KIO 27aa3764c0bf

Improve error handling in file ioslave

Authored by chinmoyr on Feb 3 2018, 8:47 AM.

Description

Improve error handling in file ioslave

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.

Reviewers: dfaure

Reviewed By: dfaure

Subscribers: Frameworks

Tags: Frameworks

Differential Revision: https://phabricator.kde.org/D10266

Details

Committed
chinmoyrFeb 3 2018, 10:36 AM
Reviewer
dfaure
Differential Revision
D10266: Improve error handling in file ioslave
Parents
R241:658b38febf0d: autotests: fix baloo timeline test that broke in january (1 != 01)
Branches
Unknown
Tags
Unknown