- cfstat.WriteString("Password", conf.password);
- cfstat.WriteInt ("Passive", conf.passive);
- cfstat.WriteInt ("Down", conf.disabled);
- cfstat.WriteInt("DisabledDetailStat", conf.disabledDetailStat);
- cfstat.WriteInt ("AlwaysOnline", conf.alwaysOnline);
- cfstat.WriteString("Tariff", conf.tariffName);
- cfstat.WriteString("Address", conf.address);
- cfstat.WriteString("Phone", conf.phone);
- cfstat.WriteString("Email", conf.email);
- cfstat.WriteString("Note", conf.note);
- cfstat.WriteString("RealName", conf.realName);
- cfstat.WriteString("Group", conf.group);
- cfstat.WriteDouble("Credit", conf.credit);
- cfstat.WriteString("TariffChange", conf.nextTariff);
-
- char userdataName[12];
- for (int i = 0; i < USERDATA_NUM; i++)
- {
- snprintf(userdataName, 12, "Userdata%d", i);
- cfstat.WriteString(userdataName, conf.userdata[i]);
- }
- cfstat.WriteInt("CreditExpire", conf.creditExpire);
-
- stringstream ipStr;
- ipStr << conf.ips;
- cfstat.WriteString("IP", ipStr.str());
+if (e)
+ {
+ STG_LOCKER lock(&mutex, __FILE__, __LINE__);
+ printfd(__FILE__, "FILES_STORE::SaveUserConf - chmod/chown failed for user '%s'. Error: '%s'\n", login.c_str(), strerror(errno));