From: Michael Tremer Date: Sun, 17 Jul 2022 18:38:35 +0000 (+0000) Subject: execute: Use existing function to check if we are running in / X-Git-Tag: 0.9.28~690 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f25eb5d6db84ade73f3c5ad47f6560f76fb6711;p=pakfire.git execute: Use existing function to check if we are running in / Signed-off-by: Michael Tremer --- diff --git a/src/libpakfire/execute.c b/src/libpakfire/execute.c index 27a07aae0..559f5d37b 100644 --- a/src/libpakfire/execute.c +++ b/src/libpakfire/execute.c @@ -554,7 +554,7 @@ static int pakfire_execute_fork(void* data) { DEBUG(pakfire, " env : %s\n", env->envp[i]); // Change root (unless root is /) - if (strcmp(root, "/") != 0) { + if (!pakfire_on_root(pakfire)) { // Mount everything r = pakfire_mount_all(pakfire); if (r)