From: Mike Yuan Date: Tue, 2 Apr 2024 16:51:37 +0000 (+0800) Subject: hibernate-resume: EINVAL -> ENOTBLK where appropriate X-Git-Tag: v256-rc1~324^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=667b0c48f2f4ca3ae7b5fcb93fe00bd3aba21d20;p=thirdparty%2Fsystemd.git hibernate-resume: EINVAL -> ENOTBLK where appropriate --- diff --git a/src/hibernate-resume/hibernate-resume.c b/src/hibernate-resume/hibernate-resume.c index 519aefe29fa..27411faa7f4 100644 --- a/src/hibernate-resume/hibernate-resume.c +++ b/src/hibernate-resume/hibernate-resume.c @@ -67,7 +67,7 @@ static int run(int argc, char *argv[]) { return log_error_errno(errno, "Failed to stat resume device '%s': %m", arg_info.device); if (!S_ISBLK(st.st_mode)) - return log_error_errno(SYNTHETIC_ERRNO(EINVAL), + return log_error_errno(SYNTHETIC_ERRNO(ENOTBLK), "Resume device '%s' is not a block device.", arg_info.device); /* The write shall not return if a resume takes place. */