From: Yu Watanabe Date: Wed, 3 Apr 2024 18:20:28 +0000 (+0900) Subject: vmspawn: fix error code X-Git-Tag: v256-rc1~315 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8c27f1ba4a2c834fed4893844999ab9440ee5593;p=thirdparty%2Fsystemd.git vmspawn: fix error code --- diff --git a/src/vmspawn/vmspawn.c b/src/vmspawn/vmspawn.c index 8d2348d7487..1828deae2ae 100644 --- a/src/vmspawn/vmspawn.c +++ b/src/vmspawn/vmspawn.c @@ -505,7 +505,7 @@ static int parse_argv(int argc, char *argv[]) { } if (!isempty(optarg) && !path_is_absolute(optarg) && !startswith(optarg, "./")) - return log_error_errno(SYNTHETIC_ERRNO(errno), "Absolute path or path starting with './' required."); + return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "Absolute path or path starting with './' required."); r = parse_path_argument(optarg, /* suppress_root= */ false, &arg_firmware); if (r < 0)