From 5261aa34ec0f8b59acd9439cc49f23e8ed7ede47 Mon Sep 17 00:00:00 2001 From: thib Date: Sat, 20 May 2006 16:32:28 +0000 Subject: [PATCH] *** empty log message *** --- allow.c | 5 +++-- doc/en/changes.sgml | 15 ++++++++++++++- doc/en/faq.sgml | 4 ++-- doc/en/todo.sgml | 11 +++++++---- doc/fr/fcrontab.5.sgml | 4 ++-- 5 files changed, 28 insertions(+), 11 deletions(-) diff --git a/allow.c b/allow.c index 4755647..309ed45 100644 --- a/allow.c +++ b/allow.c @@ -22,7 +22,7 @@ * `LICENSE' that comes with the fcron source distribution. */ - /* $Id: allow.c,v 1.15 2006-01-11 00:58:02 thib Exp $ */ + /* $Id: allow.c,v 1.16 2006-05-20 16:32:28 thib Exp $ */ #include "fcrontab.h" @@ -82,7 +82,8 @@ is_allowed(char *user) int deny = 0; /* check if user is in passwd file */ - if ( ! getpwnam(user) ) + errno = 0; + if ( ( ! getpwnam(user) ) || errno != 0 ) return 0; /* check if user is in fcron.allow and/or in fcron.deny files */ diff --git a/doc/en/changes.sgml b/doc/en/changes.sgml index 961b668..e53f23a 100644 --- a/doc/en/changes.sgml +++ b/doc/en/changes.sgml @@ -8,11 +8,24 @@ Foundation. A copy of the license is included in gfdl.sgml. --> - + Changes + + From version 3.0.1 to 3.0.2 + + By default, don't use the shell defined in /etc/passwd by default, but use the default value form fcron.conf instead. This is for compatibility with Vixie cron. + + + Use root name and group instead of root uid and gid. This seems more logical since the configure scripts asks for the name and group and not the uid and gid. + + + Added an init file for Suse in script/ (contribution from Alex: thanks!). + + + From version 3.0.0 to 3.0.1 diff --git a/doc/en/faq.sgml b/doc/en/faq.sgml index 2d96569..6e99bc2 100644 --- a/doc/en/faq.sgml +++ b/doc/en/faq.sgml @@ -8,7 +8,7 @@ Foundation. A copy of the license is included in gfdl.sgml. --> - + Frequently Asked Questions @@ -324,7 +324,7 @@ and set appropriately the paths: but by run-parts, which is independent from fcron). So if you want to replace transparently Vixie cron by fcron, all you have to do is creating a /usr/bin/crontab link to - /usr/bin/crontab, and to reinstall the system (f)crontab + /usr/bin/fcrontab, and to reinstall the system (f)crontab with fcrontab /etc/crontab each time you modify it (if you find something else to do, please tell me!). You can also use the script script/check_system_crontabs diff --git a/doc/en/todo.sgml b/doc/en/todo.sgml index a819bb4..8f3cc5f 100644 --- a/doc/en/todo.sgml +++ b/doc/en/todo.sgml @@ -8,7 +8,7 @@ Foundation. A copy of the license is included in gfdl.sgml. --> - + Todo @@ -25,13 +25,16 @@ A copy of the license is included in gfdl.sgml. High priority - test the fix for empty mails on non linux systems (solaris seems ok, feedback on BSD?) (starting from fcron 2.9.7 -- no complain so far, so fixed?) + test + update the doc on how SHELL is defined (priority: 1) value from fcrontab file 2) value from fcron.conf if non-zero long string 3) value from /etc/passwd -- default value for SHELL in fcron.conf is now "") - bug fix: what happens if the grand-child cannot be forked or cannot run the job in job.c? + better loop to read/write the pid of grand-child from/by the child (fcron freezes if the filesystem on which it operates has no space left? (cannot reproduce it on my linux system) + set TZ env. var. for jobs for which option tz is used. - set TZ env. var. for jobs for which option tz is used. + Test (and use ?) docbook2x-man -- xlstproc ? cf http://antoine.ginies.free.fr/docbook/ch09.html + + + find way to have the non translated pages of the French translation be updated automatically (changes, todo, etc -> copied from the English doc) diff --git a/doc/fr/fcrontab.5.sgml b/doc/fr/fcrontab.5.sgml index 47fd77e..c9695fb 100644 --- a/doc/fr/fcrontab.5.sgml +++ b/doc/fr/fcrontab.5.sgml @@ -8,7 +8,7 @@ Foundation. A copy of the license is included in gfdl.sgml. --> - + @@ -97,7 +97,7 @@ A copy of the license is included in gfdl.sgml. - EntrÉes basÉes sur le temps ÉcoulÉ depuis le démarrage du systÉme + <title>EntrÉes basÉes sur le temps ÉcoulÉ depuis le démarrage du systÈme Les entrées des commandes qui doivent être exécutées une fois toutes les m minutes de l'exécution de &fcron; (qui sont normalement -- 2.40.0