Skip to content

Commit 4db170c

Browse files
committed
criu: do not ignore errors with ret != -1
Closes: containers#1990 Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
1 parent 036132e commit 4db170c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcrun/criu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1217,7 +1217,7 @@ libcrun_container_restore_linux_criu (libcrun_container_status_t *status, libcru
12171217
}
12181218
out:
12191219
ret_out = rmdir (root);
1220-
if (UNLIKELY (ret == -1))
1220+
if (UNLIKELY (ret < 0))
12211221
return ret;
12221222
if (UNLIKELY (ret_out == -1))
12231223
return crun_make_error (err, errno, "error removing restore directory `%s`", root);

0 commit comments

Comments
 (0)