delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/06/28/07:07:55

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <D8D1A6A7110BD51188B600E018C673D02D9843@ross.dorotech.fr>
From: Trikkaliotis Niklos <nikolaos DOT trikkaliotis AT serfrance DOT fr>
To: "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com>
Subject: Re: CRON and time
Date: Thu, 28 Jun 2001 13:04:31 +0200
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)

Yes the problems from cron is resolved !!!
Take the next patch !!!
Compile the sources, copy the exes in the correct place and run cron as
service !!!
All work fine :-))))

cron.h
92c92
< #define	CRON_TAB(u)	"%s/%s", SPOOL_DIR, u
---
> #define	CRON_TAB(u)	"%s/%s/%s", CRONDIR, SPOOL_DIR, u

crontab.c
644c644
< 	if (fchmod(fileno(tmp), 0600) < OK)
---
> 	if (fchmod(fileno(tmp), 0644) < OK)

do_command.c
232c232
< 		if (setuid(e->uid) < 0)		/* we aren't root after
this... */
---
> 		if (setuid(ROOT_UID) < 0)		/* we aren't root
after this... */


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019