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

Resolve paths before comparing input/output destination #2878

Merged
merged 1 commit into from Sep 6, 2021
Merged

Resolve paths before comparing input/output destination #2878

merged 1 commit into from Sep 6, 2021

Conversation

rexxars
Copy link
Contributor

@rexxars rexxars commented Sep 6, 2021

This fixes an issue where if you try to write to the same destination as the input file but you are not using absolute (or the same relative path) for both the input and output, sharp/vips might produce errors such as:

someFile.jpg: unable to open for write
unix error: No such file or directory

Fixes #2873

This fixes an issue where if you try to write to the same destination as the
input file but you are not using absolute (or the same relative path) for both
the input and output, sharp/vips might produce errors such as:

```
someFile.jpg: unable to open for write
unix error: No such file or directory
```

Fixes #2873
@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 71273ad on rexxars:fix/improve-input-output-filename-matching into afb2113 on lovell:master.

@lovell lovell merged commit 52307fa into lovell:master Sep 6, 2021
@lovell
Copy link
Owner

lovell commented Sep 6, 2021

Thank you!

@lovell lovell added this to the v0.29.1 milestone Sep 6, 2021
lovell added a commit that referenced this pull request Sep 6, 2021
@rexxars rexxars deleted the fix/improve-input-output-filename-matching branch September 7, 2021 19:05
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.

Improve detection of input/output file name matching
3 participants