Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@coord-e
Copy link
Owner

@coord-e coord-e commented Dec 12, 2022

When there are two or more links transitively points to the same file and more than two of them are included to the bundle, magicpak fails with the following error (unexpected behavior):

error: IO error: File exists (os error 17)

For example, this can happen when --include '/lib/x86_64-linux-gnu/libnss_*' is specified.
https://github.com/coord-e/magicpak#note-on-name-resolution-and-glibc

  • /lib/x86_64-linux-gnu/libnss_dns.so is a symlink to /lib/x86_64-linux-gnu/libnss_dns.so.2
  • and /lib/x86_64-linux-gnu/libnss_dns.so.2 is a symlink to /lib/x86_64-linux-gnu/libnss_dns-2.31.so

This PR fixes it.

@coord-e coord-e force-pushed the symlink-already-exists branch from 40525ad to 5fa9425 Compare December 12, 2022 08:44
@coord-e coord-e merged commit 1d9375c into develop Dec 12, 2022
@coord-e coord-e deleted the symlink-already-exists branch December 12, 2022 11:15
@coord-e coord-e mentioned this pull request Dec 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants