![]() ![]() | ![]() |
version 1.68, 2010/02/04 18:27:06 | version 1.69, 2010/02/06 17:15:33 | ||
---|---|---|---|
|
|
||
home = pw->pw_dir; | home = pw->pw_dir; | ||
} | } | ||
xasprintf(&cfg_file, "%s/%s", home, DEFAULT_CFG); | xasprintf(&cfg_file, "%s/%s", home, DEFAULT_CFG); | ||
if (access(cfg_file, R_OK) != 0) { | if (access(cfg_file, R_OK) != 0 && errno == ENOENT) { | ||
xfree(cfg_file); | xfree(cfg_file); | ||
cfg_file = NULL; | cfg_file = NULL; | ||
} | |||
} else { | |||
if (access(cfg_file, R_OK) != 0) { | |||
log_warn("%s", cfg_file); | |||
exit(1); | |||
} | } | ||
} | } | ||