commit 5583766

uint  ·  2026-01-31 05:22:02 +0000 UTC
parent 25aeb79
print "set" on set password, log set_kv error
2 files changed,  +3, -2
+2, -1
 1@@ -51,7 +51,8 @@ static int load_path(const char* path)
 2 		if (k[0] == '\0')
 3 			continue;
 4 
 5-		(void)set_kv(k, v);
 6+		if (set_kv(k, v) < 0)
 7+			LOG(true, "CONF", "Config Error       %s=%s", k, v);
 8 	}
 9 
10 	free(line);
+1, -1
1@@ -299,7 +299,7 @@ int users_set_pass(const char* pass)
2 
3 	LOG(
4 		verbose_log, "AUTH", "Password set for   %s (%s)",
5-		users.v[users.len - 1].name, (pass[0] == '\0') ? "none" : ""
6+		users.v[users.len - 1].name, (pass[0] == '\0') ? "none" : "set"
7 	);
8 	return 0;
9 }