"Save Copy As" with file opened from Firefox results in restrictive permissions
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evince |
Unknown
|
Wishlist
|
|||
evince (Ubuntu) |
Triaged
|
Low
|
Unassigned |
Bug Description
A common usage pattern of mine is to download PDF's through Firefox by clicking the link and selecting "Open with", on occasion I'd like to keep the PDF's so use the File->Save a Copy As menu item in Evince to save a copy in my home directory.
The files are copied with the same permissions they have when downloaded by Firefox to tmp (r--------) - this leads to the protected badge icon being displayed over the file in Nautilus and a file which is less accessible (from a privileges perspective) than others created and saved to my home directory (with the default permissions of rw-rw-r--).
I think it would be good to remain consistent with the default permissions when effectively creating a new document rather than maintaining the more restrictive permissions of the temporary file.
Ubuntu Version info:
Description: Ubuntu 12.10
Release: 12.10
Evince Version info:
evince:
Installed: 3.6.0-0ubuntu2
Candidate: 3.6.0-0ubuntu2
Version table:
*** 3.6.0-0ubuntu2 0
500 http://
100 /var/lib/
Changed in evince (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → Low |
Changed in evince: | |
importance: | Unknown → Wishlist |
status: | Unknown → New |
Changed in evince: | |
status: | New → Unknown |
I don't think that this bug is in Evince itself. I've been taking a look at the code and found that in ev_xfer_ uri_simple( ) libdocument/ ev-file- helpers. c:419 the call to g_file_copy() passes G_FILE_ COPY_TARGET_ DEFAULT_ PERMS
http:// bazaar. launchpad. net/~ubuntu- branches/ ubuntu/ quantal/ evince/ quantal/ view/head: /libdocument/ ev-file- helpers. c#L419
which according to the glib docs "Leaves target file with default perms, instead of setting the source file perms."