Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Message-Id: <5.1.0.14.2.20010622011849.029745d8@imap.mscha.org>
X-Sender: ml@imap.mscha.org (Unverified)
X-Mailer: QUALCOMM Windows Eudora Version 5.1
Date: Fri, 22 Jun 2001 01:50:20 +0200
To: cygwin <cygwin@cygwin.com>
From: Michael Schaap <cygwin@mscha.com>
Subject: Re: New on sources: cron-3.0.1-1
In-Reply-To: <20010621204325.B1830@cobold.toronto.redhat.com>
References: <5.1.0.14.2.20010619153026.03b7ed90@imap.mscha.org>
 <20010610120625.D1144@cygbert.vinschen.de>
 <5.1.0.14.2.20010618121739.03a46dc0@imap.mscha.org>
 <5.1.0.14.2.20010619153026.03b7ed90@imap.mscha.org>
Mime-Version: 1.0
Content-Type: multipart/mixed;
	boundary="=====================_33005068==_"
X-Virus-Scanned: at mscha.com by AMaViSd snapshot-20010407 (http://amavis.org/)

--=====================_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==_--

