From: Thibault Godouet Date: Thu, 1 Mar 2001 18:40:47 +0000 (+0000) Subject: bug corrected : env var can now include underscrores (_) X-Git-Tag: ver2_9_4~393 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6173caf9ccd199b2ddab00b2202a23f4cb686922;p=thirdparty%2Ffcron.git bug corrected : env var can now include underscrores (_) --- diff --git a/fileconf.c b/fileconf.c index 125d19d..7063d5e 100644 --- a/fileconf.c +++ b/fileconf.c @@ -22,7 +22,7 @@ * `LICENSE' that comes with the fcron source distribution. */ - /* $Id: fileconf.c,v 1.40 2001-02-14 13:51:56 thib Exp $ */ + /* $Id: fileconf.c,v 1.41 2001-03-01 18:40:47 thib Exp $ */ #include "fcrontab.h" @@ -284,7 +284,8 @@ read_env(char *ptr, CF *cf) bzero(name, sizeof(name)); /* copy env variable's name */ - while (isalnum(*ptr) && *ptr != '=' && !isspace(*ptr) && j < sizeof(name)){ + while ( (isalnum(*ptr) || *ptr == '_') && *ptr != '=' && !isspace(*ptr) + && j < sizeof(name) ) { name[j++] = *ptr; ptr++; }