exit-on-disconnect: fix %ls for wchar_t AccountName

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Git Sagar 2026-06-04 19:05:24 +05:30
parent b933283d30
commit 2700307b5f

View file

@ -1,5 +1,5 @@
--- a/src/Cedar/Session.c 2026-06-04 18:43:24.747504226 +0530
+++ b/src/Cedar/Session.c 2026-06-04 18:43:24.753504227 +0530
+++ b/src/Cedar/Session.c 2026-06-04 19:02:32.071622528 +0530
@@ -1789,6 +1789,14 @@
Debug("Session Halt.\n");
@ -9,7 +9,7 @@
+ // Lets systemd restart the service for a clean reconnect + DHCP.
+ if (s->Account != NULL && s->Account->StartupAccount)
+ {
+ Print("Startup account \"%s\" disconnected. Exiting.\n", s->Account->ClientOption->AccountName);
+ Print("Startup account \"%ls\" disconnected. Exiting.\n", s->Account->ClientOption->AccountName);
+ _exit(1);
+ }
s->ClientStatus = CLIENT_STATUS_IDLE;