From: thib Date: Thu, 1 Mar 2001 18:40:47 +0000 (+0000) Subject: bug corrected : env var can now include underscrores (_) X-Git-Tag: ver1564~319 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e3f73e5e62a1f7c11498d1cd4539e9c429eb38a8;p=fcron 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++; }