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

Skip to content

Fallback to standard temp file if O_TMPFILE fails #1155

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

Merged
merged 1 commit into from
Nov 5, 2018

Conversation

lovell
Copy link
Member

@lovell lovell commented Nov 4, 2018

This should fix #1151, makes the Windows _O_TEMPORARY bit work again and simplifies the logic so the default and fallback behaviour are both the same statement.

This doesn't deal with updating image->filename to use the O_TMPFILE filename. This means that further errors involving the file, if any, will still include /tmp/vips-xxx.v rather than the actual /tmp/random-os-assigned-filename.

@jcupitt jcupitt merged commit e523428 into libvips:master Nov 5, 2018
@jcupitt
Copy link
Member

jcupitt commented Nov 5, 2018

Nice job!

Oh dear, you're right, it wasn't being set on Windows, copy-paste error I guess.

@jcupitt
Copy link
Member

jcupitt commented Nov 5, 2018

This feels like a fix that should go into 8.7.1, what do you think?

@lovell
Copy link
Member Author

lovell commented Nov 5, 2018

Thanks John, yes please to a patch release for this if possible.

@lovell lovell deleted the open-tmpfile-fallback branch November 5, 2018 10:25
jcupitt added a commit that referenced this pull request Nov 5, 2018
was not auto-deleteing on windows, needs a fallback on linux

see #1155
@jcupitt
Copy link
Member

jcupitt commented Nov 5, 2018

OK, 8.7 HEAD patched too, I'll make an 8.7.1.

@jcupitt
Copy link
Member

jcupitt commented Nov 5, 2018

8.7.1 is up!

https://github.com/libvips/libvips/releases/tag/v8.7.1

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.

O_TMPFILE doens't work on each FS
2 participants