|
a/src/common/rclconfig.cpp |
|
b/src/common/rclconfig.cpp |
|
... |
|
... |
552 |
void RclConfig::storeMissingHelperDesc(const string &s)
|
552 |
void RclConfig::storeMissingHelperDesc(const string &s)
|
553 |
{
|
553 |
{
|
554 |
string fmiss = path_cat(getConfDir(), "missing");
|
554 |
string fmiss = path_cat(getConfDir(), "missing");
|
555 |
FILE *fp = fopen(fmiss.c_str(), "w");
|
555 |
FILE *fp = fopen(fmiss.c_str(), "w");
|
556 |
if (fp) {
|
556 |
if (fp) {
|
557 |
fwrite(s.c_str(), s.size(), 1, fp);
|
557 |
if (fwrite(s.c_str(), s.size(), 1, fp) != 1) {
|
|
|
558 |
LOGERR(("storeMissingHelperDesc: fwrite failed\n"));
|
|
|
559 |
}
|
558 |
fclose(fp);
|
560 |
fclose(fp);
|
559 |
}
|
561 |
}
|
560 |
}
|
562 |
}
|
561 |
|
563 |
|
562 |
// Read definitions for field prefixes, aliases, and hierarchy and arrange
|
564 |
// Read definitions for field prefixes, aliases, and hierarchy and arrange
|