]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
AOSP: e2fsdroid: Fix incorrect error value handling.
authorDavid Anderson <dvander@google.com>
Thu, 24 Jan 2019 02:49:23 +0000 (18:49 -0800)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 8 Feb 2019 03:37:54 +0000 (22:37 -0500)
commit587433c497058e3ec4de064558928f2c1fda2787
treed040d35a5f39a65b07bba1ae5970ca64d930c987
parent3e953c0a03776bef693ad9faf3053958058aa832
AOSP: e2fsdroid: Fix incorrect error value handling.

Methods returning 0 or -1 should not pass their return value to com_err.
Also, errno values should not be negated when passed to com_err or
through errcode_t.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Bug: N/A
Test: manual test

Change-Id: I5e25cf2deeee72668bf0ab58337ee582bf14bbc1
From AOSP commit: 0468e33fba75dbf60877ef14ecee7b0b60f756df
contrib/android/perms.c