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

Fix crypt4gh redirection #1577

Merged
merged 1 commit into from
Mar 7, 2023
Merged

Conversation

daviesrob
Copy link
Member

hopen() uses a ':' in mode to indicate that there are extra parameters. hts_crypt4gh_redirect() needs to add this so that the "parent" parameter is picked up by the crypt4gh plug-in.

Failing to do this caused it to re-open the file instead of reusing the existing file handle - which worked for regular files but not for things like pipes or htsget.

Problem noticed when trying to reproduce some crypt4gh-over-htsget work.

hopen() uses a ':' in `mode` to indicate that there are extra
parameters.  hts_crypt4gh_redirect() needs to add this so that
the "parent" parameter is picked up by the crypt4gh plug-in.

Failing to do this caused it to re-open the file instead of
reusing the existing file handle - which worked for regular files
but not for things like pipes or htsget.
@jkbonfield jkbonfield merged commit be6633a into samtools:develop Mar 7, 2023
@daviesrob daviesrob deleted the crypt4gh-redirect branch March 8, 2023 17:12
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