From 69200bec7608d40de127fdc3cb0977ce552f83a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=C2=A0Miros=C5=82aw?= Date: Tue, 1 Aug 2023 22:39:59 +0200 Subject: [PATCH] irmap: scan user-provided paths in order MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Make the scan use the order of paths that came from the user. Fixes: 4f2e4ab3be01 ("irmap: add --irmap-scan-path option"; 2015-09-16) Signed-off-by: Michał Mirosław --- criu/irmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/criu/irmap.c b/criu/irmap.c index 2cdc66071..e12df5cb5 100644 --- a/criu/irmap.c +++ b/criu/irmap.c @@ -501,6 +501,6 @@ int irmap_scan_path_add(char *path) o->ir->path = path; o->ir->nr_kids = -1; - list_add(&o->node, &opts.irmap_scan_paths); + list_add_tail(&o->node, &opts.irmap_scan_paths); return 0; }