From 48904aeb50ea74024fe273fa4ac70f94d967f47a Mon Sep 17 00:00:00 2001
From: Badrikesh Prusty <badrikesh.prusty@siemens.com>
Date: Wed, 11 Feb 2026 16:08:11 +0530
Subject: [PATCH] Align SWUpdate client socket paths with daemon
 RuntimeDirectory

Explicitly set CONFIG_SOCKET_CTRL_PATH and CONFIG_SOCKET_PROGRESS_PATH
to /run/swupdate/ in debian_defconfig to ensure the client uses the same
RuntimeDirectory as the daemon.

This prevents IPC failures such as "swupdate_async_start returns -1"
when running swupdate-client, which occur if the client falls back to
/tmp.

Signed-off-by: Badrikesh Prusty <badrikesh.prusty@siemens.com>
---
 debian/configs/defconfig | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/debian/configs/defconfig b/debian/configs/defconfig
index d00c245..b612990 100644
--- a/debian/configs/defconfig
+++ b/debian/configs/defconfig
@@ -33,3 +33,5 @@ CONFIG_ARCHIVE=y
 CONFIG_BOOTLOADERHANDLER=y
 CONFIG_HASH_VERIFY=y
 CONFIG_DOCKER=y
+CONFIG_SOCKET_CTRL_PATH="/run/swupdate/sockinstctrl"
+CONFIG_SOCKET_PROGRESS_PATH="/run/swupdate/swupdateprog"
-- 
2.39.5

