Commit ccc80078 authored by Lennart Poettering's avatar Lennart Poettering
Browse files

general: unify error code we generate on timeout

parent aa2e2115
......@@ -132,7 +132,7 @@ int ask_password_tty(
r = -errno;
goto finish;
} else if (k == 0) {
r = -ETIMEDOUT;
r = -ETIME;
goto finish;
}
......
......@@ -1361,6 +1361,7 @@ static const char *error_to_dbus(int error) {
return DBUS_ERROR_FILE_EXISTS;
case -ETIMEDOUT:
case -ETIME:
return DBUS_ERROR_TIMEOUT;
case -EIO:
......
......@@ -128,7 +128,7 @@ static int ask_password_plymouth(
y = now(CLOCK_MONOTONIC);
if (y > until) {
r = -ETIMEDOUT;
r = -ETIME;
goto finish;
}
......@@ -149,7 +149,7 @@ static int ask_password_plymouth(
r = -errno;
goto finish;
} else if (j == 0) {
r = -ETIMEDOUT;
r = -ETIME;
goto finish;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment