1 $DragonFly: src/gnu/usr.bin/cvs/cvs/Attic/parseinfo.c.patch,v 1.3 2005/06/13 22:35:54 corecode Exp $
2 --- /usr/src/contrib/cvs-1.12.12/src/parseinfo.c 2005-04-21 08:33:15.000000000 +0200
3 +++ parseinfo.c 2005-06-13 23:44:05.000000000 +0200
6 * xmalloc() failures are fatal, per usual.
9 -parse_config (const char *cvsroot)
10 +static struct config *
11 +parse_config_file (const char *cvsroot, const char *config_name, struct config *retval)
16 size_t line_allocated = 0;
19 - struct config *retval;
21 TRACE (TRACE_FUNCTION, "parse_config (%s)", cvsroot);
23 - retval = new_config ();
25 + retval = new_config ();
27 - infopath = Xasprintf ("%s/%s/%s", cvsroot, CVSROOTADM, CVSROOTADM_CONFIG);
28 + infopath = Xasprintf ("%s/%s/%s", cvsroot, CVSROOTADM, config_name);
30 fp_info = CVS_FOPEN (infopath, "r");
33 readBool (infopath, "SystemAuth", p, &dummy);
36 - else if (strcmp (line, "LocalKeyword") == 0)
37 + else if (strcmp (line, "LocalKeyword") == 0 ||
38 + strcmp (line, "tag") == 0)
39 RCS_setlocalid (infopath, ln, &retval->keywords, p);
40 - else if (strcmp (line, "KeywordExpand") == 0)
41 + else if (strcmp (line, "KeywordExpand") == 0 ||
42 + strcmp (line, "tagexpand") == 0)
43 RCS_setincexc (&retval->keywords, p);
44 else if (strcmp (line, "PreservePermissions") == 0)
52 +parse_config (const char *cvsroot)
54 + struct config *retval;
57 + retval = parse_config_file (cvsroot, CVSROOTADM_CONFIG, retval);
58 + retval = parse_config_file (cvsroot, CVSROOTADM_OPTIONS, retval);