From 63068b1de027d62611a018d8f6a3ef774134ec3a Mon Sep 17 00:00:00 2001 From: Git Sagar Date: Thu, 4 Jun 2026 19:05:24 +0530 Subject: [PATCH] exit-on-disconnect: fix %ls for wchar_t AccountName Co-Authored-By: Claude Opus 4.6 --- patches/exit-client-on-disconnect.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/patches/exit-client-on-disconnect.patch b/patches/exit-client-on-disconnect.patch index 1c1ddb9..b0aec63 100644 --- a/patches/exit-client-on-disconnect.patch +++ b/patches/exit-client-on-disconnect.patch @@ -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:15:21.047081010 +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); ++ fprintf(stderr, "Startup account \"%ls\" disconnected. Exiting.\n", s->Account->ClientOption->AccountName); + _exit(1); + } s->ClientStatus = CLIENT_STATUS_IDLE;