From: Michael Tremer Date: Tue, 19 Jul 2022 14:29:32 +0000 (+0000) Subject: mount: Don't return error in foreach when there are no mountpoints X-Git-Tag: 0.9.28~673 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec64a612f87a1371e8777f0088f1497987c7d0bc;p=pakfire.git mount: Don't return error in foreach when there are no mountpoints The loop returned 1 by default when there were no mountpoints to process which is not what we need here. Signed-off-by: Michael Tremer --- diff --git a/src/libpakfire/mount.c b/src/libpakfire/mount.c index e671a6955..ae87aa660 100644 --- a/src/libpakfire/mount.c +++ b/src/libpakfire/mount.c @@ -106,7 +106,7 @@ static int pakfire_mount_foreach(struct pakfire* pakfire, int direction, int (*callback)(struct pakfire* pakfire, struct libmnt_fs* fs, const void* data), const void* data) { const char* root = pakfire_get_path(pakfire); - int r = 1; + int r = 0; struct libmnt_iter* iterator = NULL; struct libmnt_table* tab = NULL;