From e3f73e5e62a1f7c11498d1cd4539e9c429eb38a8 Mon Sep 17 00:00:00 2001 From: thib Date: Thu, 1 Mar 2001 18:40:47 +0000 Subject: [PATCH] bug corrected : env var can now include underscrores (_) --- fileconf.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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++; } -- 2.40.0