← Back to team overview

phatch-dev team mailing list archive

[Bug 498679] Re: Setgid/acl inconsistently honored

 

Hard to say where this bug was; worse, I can't reproduce it now. :-(  But, the setup was like this:
- parent directory, 'rawpics', was setgid to group 'parsleys'
- subdirectory 20091002 inherited the setgid bit, and had pictures in it (which by setgid were group 'parsleys')
- I process 20091002, a subdirectory of rawpics
- phatch creates 20091002_small with 1/4 size pics in it; 20091002_small also inherits the setgid group 'parsleys'
- the individual pictures in 20091002_small had inconsistent group permissions; some got the user private group (group 'sally', my wife), with permission bits 600, others got the correct group from the setgid ('parsleys') with perm bits 664.

The phatch action list was just resize to 25% and save.  I can't fathom
why some of the pics saved would get the correct group from setgid, and
others would not.  Sorry if I didn't give enough detail in the original
report; even though I can't now reproduce it, I still wonder where this
bug might have been.  I just checked, and the umask is 0002, so getting
images with perms 600 doesn't make sense.

*shrug* - very strange, but for now it seems to have gone away, so it
can be closed.

-- 
Setgid/acl inconsistently honored
https://bugs.launchpad.net/bugs/498679
You received this bug notification because you are a member of Phatch
Developers, which is subscribed to Phatch.

Status in Phatch = Photo & Batch!: Incomplete

Bug description:
My wife and I run phatch in a shared directory using setgid + an acl:
[parse@gisho shared]$ getfacl rawpics
# file: rawpics
# owner: 1000
# group: parsleys
user::rwx
group::rwx
other::r-x
default:user::rwx
default:group::rwx
default:other::r-x

Oddly, when I run phatch on a directory full of images, I get a resulting directory with inconsistent permissions:
...
-rw-rw-r--.  1 sally parsleys 127638 2009-12-19 21:11 IMG_1129.JPG
-rw-rw-r--.  1 sally parsleys 127391 2009-12-19 21:11 IMG_1130.JPG
-rw-rw-r--.  1 sally parsleys 140785 2009-12-19 21:11 IMG_1131.JPG
-rw-------.  1 sally sally    144899 2009-12-19 21:12 IMG_1132.JPG
-rw-------.  1 sally sally    180501 2009-12-19 21:12 IMG_1133.JPG
-rw-rw-r--.  1 sally parsleys  74638 2009-12-19 21:11 IMG_1134.JPG
-rw-------.  1 sally sally     93009 2009-12-19 21:12 IMG_1135.JPG
-rw-------.  1 sally sally    117652 2009-12-19 21:12 IMG_1136.JPG
-rw-rw-r--.  1 sally parsleys 265933 2009-12-19 21:12 IMG_1137.JPG
...

This is on Fedora 12, ext4 filesystem.  It was also happening with ext3; I converted ext3->ext4 and turned on ACL's to see if that would correct the issue, but it acts the same.  The ACL on the phatch-created directory is correct; the same as the parent directory.  The phatch version is 0.1.6;
[parse@gisho shared]$ rpm -q phatch
phatch-0.1.6-5.fc12.x86_64





References