|
|
@@ -161,7 +161,7 @@ static const char SEPARATOR = '|';
|
|
|
#define SEPSTR "|"
|
|
|
static const char GPUSEP = ',';
|
|
|
|
|
|
-static const char *APIVERSION = "1.10";
|
|
|
+static const char *APIVERSION = "1.11";
|
|
|
static const char *DEAD = "Dead";
|
|
|
static const char *SICK = "Sick";
|
|
|
static const char *NOSTART = "NoStart";
|
|
|
@@ -465,7 +465,7 @@ struct CODES {
|
|
|
{ SEVERITY_SUCC, MSG_GPUFAN, PARAM_BOTH, "Setting GPU %d fan to (%s) reported succeess" },
|
|
|
{ SEVERITY_ERR, MSG_MISFN, PARAM_NONE, "Missing save filename parameter" },
|
|
|
{ SEVERITY_ERR, MSG_BADFN, PARAM_STR, "Can't open or create save file '%s'" },
|
|
|
- { SEVERITY_ERR, MSG_SAVED, PARAM_STR, "Configuration saved to file '%s'" },
|
|
|
+ { SEVERITY_SUCC, MSG_SAVED, PARAM_STR, "Configuration saved to file '%s'" },
|
|
|
{ SEVERITY_ERR, MSG_ACCDENY, PARAM_STR, "Access denied to '%s' command" },
|
|
|
{ SEVERITY_SUCC, MSG_ACCOK, PARAM_NONE, "Privileged access OK" },
|
|
|
{ SEVERITY_SUCC, MSG_ENAPOOL, PARAM_POOL, "Enabling pool %d:'%s'" },
|
|
|
@@ -1952,12 +1952,13 @@ static void devdetails(__maybe_unused SOCKETTYPE c, __maybe_unused char *param,
|
|
|
|
|
|
void dosave(__maybe_unused SOCKETTYPE c, char *param, bool isjson)
|
|
|
{
|
|
|
+ char filename[PATH_MAX];
|
|
|
FILE *fcfg;
|
|
|
char *ptr;
|
|
|
|
|
|
if (param == NULL || *param == '\0') {
|
|
|
- strcpy(io_buffer, message(MSG_MISFN, 0, NULL, isjson));
|
|
|
- return;
|
|
|
+ default_save_file(filename);
|
|
|
+ param = filename;
|
|
|
}
|
|
|
|
|
|
fcfg = fopen(param, "w");
|