- snprintf(configfile, len, "%s%s", homedir, CONFIGFILE_LOC);
-
- if (!(fp = fopen(configfile, "r"))) {
- /* Try the legacy config file location before giving up
- XXX we assume here that CONFIGFILE_LOC_OLD is shorter
- than CONFIGFILE_LOC! */
- snprintf(configfile, len, "%s%s", homedir, CONFIGFILE_LOC_OLD);
- if (!(fp = fopen(configfile, "r")))
- goto out_noopen;
- }