delorie.com/archives/browse.cgi | search |
--=====================_33005068==_ Content-Type: text/plain; charset="us-ascii"; format=flowed At 20:43 21-6-2001, Corinna Vinschen wrote: >Maybe, I missed something when porting. I'm currently in vacation >so that will take some time. I think you should interrupt your vacation to solve this problem RIGHT NOW! (Just kidding, of course. Enjoy your well deserved vacation.) In any case, I checked the source code, and crontab indeed tries to seteuid to ROOT_UID (= System). It looks like you added code to seteuid back to the original uid almost immediately afterwards. If you instead not seteuid at all, it seems to work fine. (Well, probably only for users with Administrator privileges, but that's better than requiring System privileges.) I've attached a patch for this change. - Michael --=====================_33005068==_ Content-Type: application/octet-stream; name="crontab_patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="crontab_patch" KioqIGNyb250YWIuYy5PUklHCVRodSBKdW4gIDcgMTk6MTI6MjggMjAwMQotLS0gY3JvbnRhYi5j CUZyaSBKdW4gMjIgMDE6Mzk6NDggMjAwMQoqKioqKioqKioqKioqKioKKioqIDEwOCwxMTQgKioq KgotLS0gMTA4LDExNiAtLS0tCiAgCXNldGxpbmVidWYoc3RkZXJyKTsKICAjZW5kaWYKICAJcGFy c2VfYXJncyhhcmdjLCBhcmd2KTsJCS8qIHNldHMgbWFueSBnbG9iYWxzLCBvcGVucyBhIGZpbGUg Ki8KKyAjaWZuZGVmIF9fQ1lHV0lOX18KICAJc2V0X2Nyb25fdWlkKCk7CisgI2VuZGlmCiAgCXNl dF9jcm9uX2N3ZCgpOwogIAlpZiAoIWFsbG93ZWQoVXNlcikpIHsKICAJCWZwcmludGYoc3RkZXJy LAoqKioqKioqKioqKioqKioKKioqIDEyMCwxMjggKioqKgogIAkJbG9nX2l0KFJlYWxVc2VyLCBQ aWQsICJBVVRIIiwgImNyb250YWIgY29tbWFuZCBub3QgYWxsb3dlZCIpOwogIAkJZXhpdChFUlJP Ul9FWElUKTsKICAJfQotICNpZmRlZiBfX0NZR1dJTl9fCi0gCXNldGV1aWQgKG9yaWdfdWlkKTsK LSAjZW5kaWYKICAJZXhpdHN0YXR1cyA9IE9LX0VYSVQ7CiAgCXN3aXRjaCAoT3B0aW9uKSB7CiAg CWNhc2Ugb3B0X2xpc3Q6CQlsaXN0X2NtZCgpOwotLS0gMTIyLDEyNyAtLS0tCg== --=====================_33005068==_ Content-Type: text/plain; charset=us-ascii -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple --=====================_33005068==_--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |