This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: CRON and time



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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]