From: Frederick Grose Date: Sun, 21 May 2023 22:05:12 +0000 (-0400) Subject: fix(resolve-deps): check the existing file—not the source X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ac581ef66dd8f1939e771419824137aebbc8f66;p=thirdparty%2Fdracut.git fix(resolve-deps): check the existing file—not the source Check for dependencies on the file actually installed, otherwise, such as when the shebang is a link not equal to the initramfs link, the wrong file may be tested. --- diff --git a/src/install/dracut-install.c b/src/install/dracut-install.c index 6bf5ce1fd..a945e3fd5 100644 --- a/src/install/dracut-install.c +++ b/src/install/dracut-install.c @@ -823,7 +823,7 @@ static int dracut_install(const char *orig_src, const char *orig_dst, bool isdir if (ret == 0) { if (resolvedeps && S_ISREG(sb.st_mode) && (sb.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH))) { log_debug("'%s' already exists, but checking for any deps", fulldstpath); - ret = resolve_deps(fullsrcpath + sysrootdirlen); + ret = resolve_deps(fulldstpath + sysrootdirlen); } else log_debug("'%s' already exists", fulldstpath);