Skip to content

Commit 342775a

Browse files
authored
Merge pull request #1969 from eriksjolund/linux-no-errno-after-success
linux: do not use errno after successful calls
2 parents b8ec3ec + 29bb32d commit 342775a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcrun/linux.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ parse_idmapped_mount_option (runtime_spec_schema_config_schema *def, bool is_uid
361361
it++;
362362

363363
if (*it == '\0')
364-
return crun_make_error (err, errno, "invalid mapping specified `%s`", option);
364+
return crun_make_error (err, 0, "invalid mapping specified `%s`", option);
365365

366366
errno = 0;
367367
value[i] = strtol (it, &endptr, 10);

0 commit comments

Comments
 (0)