[CRIU] [PATCH] namespaces: Use EINVAL instead of 22
Radostin Stoyanov
rstoyanov1 at gmail.com
Fri Dec 28 11:10:07 MSK 2018
Signed-off-by: Radostin Stoyanov <rstoyanov1 at gmail.com>
---
criu/namespaces.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/criu/namespaces.c b/criu/namespaces.c
index 05d75d53..a228737e 100644
--- a/criu/namespaces.c
+++ b/criu/namespaces.c
@@ -46,7 +46,7 @@ static unsigned int join_ns_flags;
int check_namespace_opts(void)
{
- errno = 22;
+ errno = EINVAL;
if (join_ns_flags & opts.empty_ns) {
pr_err("Conflicting flags: --join-ns and --empty-ns\n");
return -1;
@@ -71,7 +71,7 @@ static int check_int_str(char *str)
return 0;
}
- errno = 22;
+ errno = EINVAL;
val = strtol(str, &endptr, 10);
if ((errno == ERANGE) || (endptr == str)
|| (*endptr != '\0')
--
2.20.1
More information about the CRIU
mailing list