Skip to content

Fix logic error in profile symlinking#62

Merged
9999years merged 1 commit intomainfrom
wiggles/lzxv
Dec 11, 2025
Merged

Fix logic error in profile symlinking#62
9999years merged 1 commit intomainfrom
wiggles/lzxv

Conversation

@9999years
Copy link
Copy Markdown
Owner

I had referenced the upstream Lix code that ran this logic, but made two mistakes:

  1. I was checking if the profile symlink existed, rather than the profile_link symlink.

  2. I was creating the symlink in the wrong direction, partially due to confusing parameter names in fs_err.

    See: symlink: rename parameters and fix error messages to match std andrewhickman/fs-err#83

See: https://git.lix.systems/lix-project/lix/src/commit/fd38f625e6897c0597ebb2635bfb39f7cff45225/lix/libstore/profiles.cc#L338-L340

I had referenced the upstream Lix code that ran this logic, but made two
mistakes:

1. I was checking if the `profile` symlink existed, rather than the
   `profile_link` symlink.
2. I was creating the symlink in the wrong direction, partially due to
   confusing parameter names in `fs_err`.

   See: andrewhickman/fs-err#83

See: https://git.lix.systems/lix-project/lix/src/commit/fd38f625e6897c0597ebb2635bfb39f7cff45225/lix/libstore/profiles.cc#L338-L340
@9999years 9999years merged commit af579b4 into main Dec 11, 2025
3 checks passed
@9999years 9999years deleted the wiggles/lzxv branch December 11, 2025 01:17
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.

1 participant