ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/gvpe/src/conf.C
(Generate patch)

Comparing gvpe/src/conf.C (file contents):
Revision 1.62 by root, Wed Jul 17 16:40:57 2013 UTC vs.
Revision 1.63 by root, Thu Jul 18 13:35:16 2013 UTC

252 return 0; /* no tokens on this line */ 252 return 0; /* no tokens on this line */
253 253
254 if (var[0] == '#') 254 if (var[0] == '#')
255 return 0; /* comment: ignore */ 255 return 0; /* comment: ignore */
256 256
257 if (!strcmp (var, "global"))
258 {
259 node = &conf.default_node;
260 return 0;
261 }
262
257 char *val = strtok (NULL, "\t\n\r ="); 263 char *val = strtok (NULL, "\t\n\r =");
258 264
259 if (!val || val[0] == '#') 265 if (!val || val[0] == '#')
260 return _("no value given for variable, ignored"); 266 return _("no value given for variable, ignored");
261 267
305 conf.change_gid = atoi (val); 311 conf.change_gid = atoi (val);
306 else if (!strcmp (var, "chroot")) 312 else if (!strcmp (var, "chroot"))
307 free (conf.change_root), conf.change_root = strdup (val); 313 free (conf.change_root), conf.change_root = strdup (val);
308 314
309 // per node 315 // per node
310 else if (!strcmp (var, "global"))
311 node = &conf.default_node;
312 else if (!strcmp (var, "node")) 316 else if (!strcmp (var, "node"))
313 { 317 {
314 node = conf.find_node (val); 318 node = conf.find_node (val);
315 319
316 if (!node) 320 if (!node)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines