Skip to content
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

[1.8] don't change file permissions when saving the modified image #76

Merged
merged 1 commit into from
Jun 11, 2015

Conversation

monsta
Copy link
Contributor

@monsta monsta commented Jun 4, 2015

flexiondotorg added a commit that referenced this pull request Jun 11, 2015
[1.8] don't change file permissions when saving the modified image
@flexiondotorg flexiondotorg merged commit 7a7e57f into mate-desktop:1.8 Jun 11, 2015
@monsta monsta deleted the 1.8 branch June 12, 2015 11:38
@sc0w
Copy link
Member

sc0w commented Feb 13, 2017

hello @monsta , I like to apply this to jessie (I am a new Debian MATE team member)

but, this doesn't work as expected, I think

my tests:


permissions

eog 3.20.5
0666 -> rotate save and quit -> 0666
0400 -> rotate save and quit -> 0400 and eog can't save the image with same name

eom 1.16.0
0666 -> rotate save and quit -> 0666
0400 -> rotate save and quit -> 0400 and eom can't save the image (read only, the expected, I think)

eom 1.8.0 (jessie)
0666 -> rotate save and quit -> 0600
0400 -> rotate save and quit -> 0600 and eom saves the image

eom jessie with the patch
0666 -> rotate save and quit -> 0666
0400 -> rotate save and quit -> 0600 and eom saves the image

eom jessie with the patch with the two lines mode_mask commented
0666 -> rotate save and quit -> 0666
0400 -> rotate save and quit -> 0400 and eom saves the image

groupid

with eog 3.20.5, eom 1.16, 1.8 (jessie), and 1.8 with the patch, the same behaviour: eog and eom overwrite the group id (if the file has user:anotheruser eog and eom overwrite it to user:user)


so, what do you think about this?

I will apply the patch with the two lines commented?

( debian bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=769792 )

@monsta
Copy link
Contributor Author

monsta commented Mar 1, 2017

Hmm, that's weird.

eom jessie with the patch with the two lines mode_mask commented
0666 -> rotate save and quit -> 0666
0400 -> rotate save and quit -> 0400 and eom saves the image

How can it save the image with 0400?

@sc0w
Copy link
Member

sc0w commented Mar 4, 2017

yes, weird, I don't know why, but it happens

@monsta
Copy link
Contributor Author

monsta commented Mar 25, 2017

Hmm I don't get it... my tests with eom 1.16 and 1.18 in Stretch show that it saves the image with 0400 just fine, modifying the attributes to 0600. Before I tested it, I thought it should keep 0400 and therefore don't save the image.

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.

None yet

3 participants