]> granicus.if.org Git - fcron/commitdiff
*** empty log message ***
authorthib <thib>
Sat, 13 Nov 2004 19:42:39 +0000 (19:42 +0000)
committerthib <thib>
Sat, 13 Nov 2004 19:42:39 +0000 (19:42 +0000)
database.c
doc/en/changes.sgml
doc/en/todo.sgml
fcrontab.c

index b906ea18ada38363d1318b99d258410f8db2fe0f..9351534ddb59e81a3a1d376e4141a1cedfcc5c25 100644 (file)
@@ -21,7 +21,7 @@
  *  `LICENSE' that comes with the fcron source distribution.
  */
 
- /* $Id: database.c,v 1.73 2004-08-12 09:45:30 thib Exp $ */
+ /* $Id: database.c,v 1.74 2004-11-13 19:43:15 thib Exp $ */
 
 #include "fcron.h"
 
@@ -955,6 +955,13 @@ set_next_exe(cl_t *line, char option, int info_fd)
    
       set_cl_nextexe:
        /* set cl_nextexe (handle the timezone differences) */
+
+       /* TODO : save the ftime.tm_isdst before mktime(), compare the saved value
+        * to ftime.tm_isdst after mktime() : if it is different, then mktime
+        * has added or removed one hour because of the daylight saving change :
+        * then, check it has done what we want or not, and fix nextexe and ftime
+        * if necessary */
+
        nextexe = mktime(&ftime);
 
        if ( is_random(line->cl_option) ) {
index 0e7b962c7e1d57748741b343996fc33ad60e02d0..976f73f7a61ede7c9050d718f6c148af531f4ff7 100644 (file)
@@ -8,11 +8,20 @@ Foundation.
 A copy of the license is included in gfdl.sgml.
 -->
 
-<!-- $Id: changes.sgml,v 1.33 2004-08-17 12:58:11 thib Exp $ -->
+<!-- $Id: changes.sgml,v 1.34 2004-11-13 19:47:02 thib Exp $ -->
 
    <sect1 id="changes">
       <title>Changes</title>
 
+      <itemizedlist>
+        <title>From version 2.9.5 to 2.9.5.1</title>
+        <listitem>
+           <para>Fixed serious security vulnerabilities in fcronsighup,
+           and improved fcronsighup's overall security (drop privileges,
+           better check user inputs, etc).</para>
+        </listitem>
+      </itemizedlist>
+
       <itemizedlist>
         <title>From version 2.9.4 to 2.9.5</title>
         <listitem>
index 6efb5fc1050177e7b4e4439ca57860ab1e865f15..f23a45ce99504e36a96728eca0417cdf1cc7a750 100644 (file)
@@ -8,7 +8,7 @@ Foundation.
 A copy of the license is included in gfdl.sgml.
 -->
 
-<!-- $Id: todo.sgml,v 1.30 2004-09-02 22:08:04 thib Exp $ -->
+<!-- $Id: todo.sgml,v 1.31 2004-11-13 19:45:19 thib Exp $ -->
 
    <sect1 id="todo">
       <title>Todo</title>
@@ -29,6 +29,11 @@ A copy of the license is included in gfdl.sgml.
               to remove call to "ioctl(fd, TIOCNOTTY, 0);"</para>
            </listitem>
         </itemizedlist>
+        <itemizedlist>
+           <listitem>
+              <para>add something on fcron's incompatibility with Vixie cron @* syntax -- fix that.</para>
+           </listitem>
+        </itemizedlist>
       </sect2>
       <sect2>
         <title>Low priority</title>
index 03e717681c2575c33bb53b390a6eb72fb1b6ec1b..424ddfcd0ad7e307dfcb2666623df210993f1932 100644 (file)
@@ -22,7 +22,7 @@
  *  `LICENSE' that comes with the fcron source distribution.
  */
 
- /* $Id: fcrontab.c,v 1.64 2003-12-25 22:42:45 thib Exp $ */
+ /* $Id: fcrontab.c,v 1.65 2004-11-13 19:42:39 thib Exp $ */
 
 /* 
  * The goal of this program is simple : giving a user interface to fcron
@@ -47,7 +47,7 @@
 #include "temp_file.h"
 #include "read_string.h"
 
-char rcs_info[] = "$Id: fcrontab.c,v 1.64 2003-12-25 22:42:45 thib Exp $";
+char rcs_info[] = "$Id: fcrontab.c,v 1.65 2004-11-13 19:42:39 thib Exp $";
 
 void info(void);
 void usage(void);
@@ -944,12 +944,13 @@ main(int argc, char **argv)
     /* interpret command line options */
     parseopt(argc, argv);
 
-#ifdef USE_SETE_ID
     if ( ! (pass = getpwnam(USERNAME)) )
        die("user \"%s\" is not in passwd file. Aborting.", USERNAME);
     fcrontab_uid = pass->pw_uid;
     fcrontab_gid = pass->pw_gid;
 
+#ifdef USE_SETE_ID
+
 #ifdef HAVE_LIBPAM
     /* Open PAM session for the user and obtain any security
        credentials we might need */