]> granicus.if.org Git - fcron/commitdiff
*** empty log message ***
authorthib <thib>
Sun, 3 Jun 2007 17:48:23 +0000 (17:48 +0000)
committerthib <thib>
Sun, 3 Jun 2007 17:48:23 +0000 (17:48 +0000)
doc/en/changes.sgml
global.h
job.c

index ea163071468f3ce04233c19cc7d5b5ca9e1301f2..cb536c933db085d964547c4e2861c1f420af6638 100644 (file)
@@ -8,11 +8,19 @@ Foundation.
 A copy of the license is included in gfdl.sgml.
 -->
 
-<!-- $Id: changes.sgml,v 1.53 2007-04-14 18:04:35 thib Exp $ -->
+<!-- $Id: changes.sgml,v 1.54 2007-06-03 17:54:10 thib Exp $ -->
 
    <sect1 id="changes">
       <title>Changes</title>
 
+      <itemizedlist>
+        <title>From version 3.0.3-rc1 to 3.0.3</title>
+        <listitem>
+           <para>The configure script now check that the make command is GNU make (which is required to build fcron).</para>
+           <para>Bug fix: better handling of getpwnam() errors (we cannot rely on errno to spot an error). This was causing problems for AIX for instance.</para>
+        </listitem>
+      </itemizedlist>
+
       <itemizedlist>
         <title>From version 3.0.2 to 3.0.3-rc1</title>
         <listitem>
index 1f3438f98ac85742a756eef01cea5aa0c6149d0b..cce89d137d579648e107a976aef1e18dc1ad609a 100644 (file)
--- a/global.h
+++ b/global.h
@@ -21,7 +21,7 @@
  *  `LICENSE' that comes with the fcron source distribution.
  */
 
- /* $Id: global.h,v 1.49 2007-04-14 18:04:15 thib Exp $ */
+ /* $Id: global.h,v 1.50 2007-06-03 17:51:50 thib Exp $ */
 
 
 /* 
               *__xx__++ = '\0';  \
         } while (0)
 
-
 #define debug if(debug_opt) Debug
 
 typedef struct env_t {
diff --git a/job.c b/job.c
index c7fbe24209814171bd06653c6b27841b1ecb824a..83a32f2dc0875643d531f278e4e96e44738dd3ed 100644 (file)
--- a/job.c
+++ b/job.c
@@ -21,7 +21,7 @@
  *  `LICENSE' that comes with the fcron source distribution.
  */
 
- /* $Id: job.c,v 1.70 2007-04-14 18:04:08 thib Exp $ */
+ /* $Id: job.c,v 1.71 2007-06-03 17:48:23 thib Exp $ */
 
 #include "fcron.h"
 
@@ -104,8 +104,9 @@ change_user(struct cl_t *cl)
 
     /* Obtain password entry and change privileges */
 
+    errno = 0;
     if ((pas = getpwnam(cl->cl_runas)) == NULL) 
-        die("failed to get passwd fields for user \"%s\"", cl->cl_runas);
+        die_e("failed to get passwd fields for user \"%s\"", cl->cl_runas);
     
 #ifdef HAVE_SETENV
     setenv("USER", pas->pw_name, 1);