Skip to content

Commit

Permalink
fix(resolve-deps): check the existing file—not the source
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
FGrose authored and aafeijoo-suse committed Jun 6, 2023
1 parent 07af8d5 commit 5ac581e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/install/dracut-install.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 5ac581e

Please sign in to comment.