Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't use library list to validate current library change #2032

Merged
merged 1 commit into from
May 6, 2024

Conversation

sebjulliand
Copy link
Collaborator

Changes

Fixes #2031

When changing the current library, CHGCURLIB is run to validate the new current library. If for some reason, the current current library cannot be accessed, CHGCURLIB will fail as the library list is wrong (i.e. it contains a library that cannot be accessed). This prevents the current library from being changed to fix the library list.

This PR changes the way CHGCURLIB is called so it doesn't use the library list.

How to test this PR

Examples:

  1. Create a temporary library
  2. Set it as the current library
  3. Delete the temporary library
  4. Reconnect
  5. Change the current library

Before the PR, step 5 would fail. With the PR, step 5 runs fine.

Checklist

  • have tested my change

Signed-off-by: Seb Julliand <sjulliand@arcadsoftware.com>
@chrjorgensen chrjorgensen self-requested a review May 6, 2024 10:51
Copy link
Collaborator

@chrjorgensen chrjorgensen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sebjulliand Simple and effective fix - good catch!! 👍

@chrjorgensen chrjorgensen merged commit 6858b7c into master May 6, 2024
1 check passed
@worksofliam worksofliam added this to the 2.11.0 milestone May 10, 2024
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.

Can't change current library from old library to new
3 participants