[okular] [Bug 402017] Cannot save PDF when loaded file has been deleted

Albert Astals Cid bugzilla_noreply at kde.org
Sat Jul 25 23:54:40 BST 2020


https://bugs.kde.org/show_bug.cgi?id=402017

--- Comment #45 from Albert Astals Cid <aacid at kde.org> ---
This is what the old posix says (or at least i remember/understood from my
university years): "Once you have a file descriptor from a file open, the file
can disappear, change, whatever, you will still read the contents of the file
as if it was when you opened the file descriptor".

But either that has changed or i misunderstood it, because that is not what
happens, see https://i.imgur.com/DaSS7Ad.gif where i change a file after having
opened it, and the read after having changed the file gives me the changed
contents and not the original ones.

If you want the code it's http://paste.debian.net/1157802/

Note if I change it with vi instead of kate, "it works", i.e. gives me the old
contents instead of the new, but the fact that "it can fail", means we can't
trust it to do A nor B.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Okular-devel mailing list