[Bug 1084820] Re: "Save Copy As" with file opened from Firefox results in restrictive permissions

2015-04-01 Thread Tommy Trussell
I am seeing this in Evince 3.10.3 after upgrading to Ubuntu 14.04. A Google search first sent me to Bug #1214874, which was marked as a duplicate of Bug #1096837 -- an AppArmor issue. THAT bug says it was fixed last August in evince version 3.10.3-0ubuntu15, but unfortunately that's a Utopic packa

[Bug 1084820] Re: "Save Copy As" with file opened from Firefox results in restrictive permissions

2012-12-03 Thread Joshua Lock
Hmm, interesting. It's expected that cp would result in the same permissions as the tmp file. It's the G_FILE_COPY_TARGET_DEFAULT_PERMS flag which should set the permissions to the defaults for the destination directory. I was wondering if the issue is in GLib but the test program mimics the GLib

[Bug 1084820] Re: "Save Copy As" with file opened from Firefox results in restrictive permissions

2012-12-03 Thread Sebastien Bacher
yeah, I don't know, we don't patch evince's code so I'm not sure what is at play there... note that doing a "cp" from the command line ends up with the same permissions that the evince copy -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubunt

[Bug 1084820] Re: "Save Copy As" with file opened from Firefox results in restrictive permissions

2012-12-01 Thread Bug Watch Updater
** Changed in: evince Status: New => Unknown -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1084820 Title: "Save Copy As" with file opened from Firefox results in restrictive permissions To

[Bug 1084820] Re: "Save Copy As" with file opened from Firefox results in restrictive permissions

2012-11-30 Thread Joshua Lock
I just wrote a simple test program (attached) to try and replicate the code path where the file is copied and it results in a file with 664 permissions. Seems the bug *is* in evince, but it's not a bug that upstream can replicate. ** Attachment added: "test-g-file-copy.c" https://bugs.launchp

[Bug 1084820] Re: "Save Copy As" with file opened from Firefox results in restrictive permissions

2012-11-30 Thread Joshua Lock
Some debugging information. The temp file opened by Firefox in Evince: user@computer:/tmp $ stat -c '%n %a %A' Some\ Pdf.pdf Some\ Pdf.pdf 400 -r The same file saved in my home directory using "Save a copy": user@computer:~/Documents $ stat -c '%n %a %A' Some\ Pdf.pdf Some\ Pdf.pdf 40

[Bug 1084820] Re: "Save Copy As" with file opened from Firefox results in restrictive permissions

2012-11-30 Thread Joshua Lock
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/quant

[Bug 1084820] Re: "Save Copy As" with file opened from Firefox results in restrictive permissions

2012-11-30 Thread Bug Watch Updater
** Changed in: evince Status: Unknown => New ** Changed in: evince Importance: Unknown => Wishlist -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1084820 Title: "Save Copy As" with file op

[Bug 1084820] Re: "Save Copy As" with file opened from Firefox results in restrictive permissions

2012-11-30 Thread Sebastien Bacher
** Changed in: evince (Ubuntu) Status: New => Triaged ** Changed in: evince (Ubuntu) Importance: Undecided => Low -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1084820 Title: "Save Copy A