aboutsummaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2018-06-24 00:25:14 -0400
committerTheodore Ts'o <tytso@mit.edu>2018-06-24 00:25:14 -0400
commit48a54b0f51a440cd6379ba9df82a9e726cad128c (patch)
tree5576205031f1ac45cd588402c412d4fc453f5ff3 /misc
parent8459c40913d393bfb22ae8b2ef7d7daa05b653c1 (diff)
downloadandroid_external_e2fsprogs-48a54b0f51a440cd6379ba9df82a9e726cad128c.tar.gz
android_external_e2fsprogs-48a54b0f51a440cd6379ba9df82a9e726cad128c.tar.bz2
android_external_e2fsprogs-48a54b0f51a440cd6379ba9df82a9e726cad128c.zip
e4crypt: fix invalid errno comparison with a negative error code
Fixes-Coverity-Bug: 1292755 Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'misc')
-rw-r--r--misc/e4crypt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/e4crypt.c b/misc/e4crypt.c
index 759a082b..3efbf6e6 100644
--- a/misc/e4crypt.c
+++ b/misc/e4crypt.c
@@ -566,7 +566,7 @@ static void insert_key_into_keyring(const char *keyring, struct salt *salt)
return;
} else if ((rc == -1) && (errno != ENOKEY)) {
printf("keyctl_search failed: %s\n", strerror(errno));
- if (errno == -EINVAL)
+ if (errno == EINVAL)
printf("Keyring [%s] is not available.\n", keyring);
exit(1);
}