Re:You’re infected—if you want to see your data again, pay u...
by gizmo686 on Saturday October 19, 2013 @05:08PM
(#6577827)
If the file is opened read-only, then programs should fall back to save as. Unfourtuantly, the only standard way to signal read-only is with file permisions. This will work, but many programs would likely have report a permisions error prior to the save as. Also it will cause problems for programs that transparently modify the file on disk while viewing.
I suppose you could hard code the read only parameter into the command that is used to execute the external program. Or have the external programs check if they are in a tmp-directory.
[ Parent
| on HN ]
There are no comments on this comment yet.