From: Thibault Godouet Date: Sun, 3 Jun 2007 17:48:23 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: ver3_0_3-rc1~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e5f97f101d8ddd3204a4fc96a74b2a3b12f5b09b;p=thirdparty%2Ffcron.git *** empty log message *** --- diff --git a/doc/en/changes.sgml b/doc/en/changes.sgml index ea16307..cb536c9 100644 --- a/doc/en/changes.sgml +++ b/doc/en/changes.sgml @@ -8,11 +8,19 @@ Foundation. A copy of the license is included in gfdl.sgml. --> - + Changes + + From version 3.0.3-rc1 to 3.0.3 + + The configure script now check that the make command is GNU make (which is required to build fcron). + Bug fix: better handling of getpwnam() errors (we cannot rely on errno to spot an error). This was causing problems for AIX for instance. + + + From version 3.0.2 to 3.0.3-rc1 diff --git a/global.h b/global.h index 1f3438f..cce89d1 100644 --- 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 $ */ /* @@ -163,7 +163,6 @@ *__xx__++ = '\0'; \ } while (0) - #define debug if(debug_opt) Debug typedef struct env_t { diff --git a/job.c b/job.c index c7fbe24..83a32f2 100644 --- 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);