summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2019-01-21 20:13:11 +0100
committerThe Plumber <50238977+systemd-rhel-bot@users.noreply.github.com>2019-12-18 13:25:41 +0100
commitea0c4c31f6dff7d01e585bd8d5f962b373844544 (patch)
tree2c014c60280b5031bbe3f885812ea4f409433904
parent05e184dea3f0182e5787812adfd52b68cff9418d (diff)
downloadsystemd-ea0c4c31f6dff7d01e585bd8d5f962b373844544.tar.gz
cryptsetup: add some commenting about EAGAIN generation
(cherry picked from commit b7a0fead10959b03a1fa642a5ae7aca3a6a3dee9) Related: #1776408
-rw-r--r--src/cryptsetup/cryptsetup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptsetup/cryptsetup.c b/src/cryptsetup/cryptsetup.c
index 0881aea915..f2b2557497 100644
--- a/src/cryptsetup/cryptsetup.c
+++ b/src/cryptsetup/cryptsetup.c
@@ -455,7 +455,7 @@ static int attach_tcrypt(
r = read_one_line_file(key_file, &passphrase);
if (r < 0) {
log_error_errno(r, "Failed to read password file '%s': %m", key_file);
- return -EAGAIN;
+ return -EAGAIN; /* log with the actual error, but return EAGAIN */
}
params.passphrase = passphrase;