]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
cryptsetup: add some commenting about EAGAIN generation
authorLennart Poettering <lennart@poettering.net>
Mon, 21 Jan 2019 19:13:11 +0000 (20:13 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 23 Jan 2019 22:37:17 +0000 (23:37 +0100)
src/cryptsetup/cryptsetup.c

index 7072a893255db01b32fff2035503edb5d9f43715..bc4ff5f5a71e28aaa7895801b6a102bdb73b6feb 100644 (file)
@@ -450,7 +450,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;