---1463801343-214625248-877978455=:6203
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
Content-ID: <Pine.LNX.3.96.971104144649.22050C@zaphod.cgmlarson.com>
I'm reposting this because it may have gotten lost in the confusion of
the list going down earlier....
I was just playing around with this. I created a file and set its
user/group to psj/root and its mode to 0644. Then as psj I tried to set
it SGID. It silently failed. I went through the code and was wondering
if there is a reason that the SGID flag is just silently taken off instead
of returning an error like trying to set something SUID that you don't
own.
It's a simple one line change, which I've included in case the current
behavior (2.1.60) isn't correct.
Best
Pat
-- +----------------------------------------------------------------------------+ | Patrick St. Jean '97 XLH 883 psj@cgmlarson.com | | Programmer & Systems Administrator +1 713-977-4177 x106 | | Larson Software Technology http://www.cgmlarson.com | +----------------------------------------------------------------------------+---1463801343-214625248-877978455=:6203 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII; NAME=sgid_fail_fix Content-Transfer-Encoding: BASE64 Content-ID: <Pine.LNX.3.96.971027125415.6203B@zaphod.cgmlarson.com> Content-Description:
LS0tIGxpbnV4L2ZzL2F0dHIuYy5vbGQJTW9uIE9jdCAyNyAxMjo1MjozNCAx OTk3DQorKysgbGludXgvZnMvYXR0ci5jCU1vbiBPY3QgMjcgMTI6NTI6NTUg MTk5Nw0KQEAgLTQzLDcgKzQzLDcgQEANCiAJCS8qIEFsc28gY2hlY2sgdGhl IHNldGdpZCBiaXQhICovDQogCQlpZiAoIWZzdXNlcigpICYmICFpbl9ncm91 cF9wKChpYV92YWxpZCAmIEFUVFJfR0lEKSA/IGF0dHItPmlhX2dpZCA6DQog CQkJCQkgICAgIGlub2RlLT5pX2dpZCkpDQotCQkJYXR0ci0+aWFfbW9kZSAm PSB+U19JU0dJRDsNCisJCQlnb3RvIGVycm9yOw0KIAl9DQogDQogCS8qIENo ZWNrIGZvciBzZXR0aW5nIHRoZSBpbm9kZSB0aW1lLiAqLw0K ---1463801343-214625248-877978455=:6203--