From 2b141773ce0ebfbaf29237f2aae28619d43742d9 Mon Sep 17 00:00:00 2001 From: lotherk Date: Wed, 18 Nov 2026 06:38:50 +0000 Subject: [PATCH] dtlogin: /tmp/.ICE-unix for the session manager libICE creates it only as root and NetBSD creates it nowhere; the session log said '_IceTransmkdir: ERROR: euid != 0, directory /tmp/.ICE-unix will not be created' and dtsession had no local ICE socket, its clients going over TCP to the host name (2026-11-18). dtlogin (root) makes it 1777 next to /var/dt, as libICE itself would. --- programs/dtlogin/dm.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/programs/dtlogin/dm.c b/programs/dtlogin/dm.c index ccbc27ad..2baeac54 100644 --- a/programs/dtlogin/dm.c +++ b/programs/dtlogin/dm.c @@ -1659,6 +1659,13 @@ dtMakeDefaultDir( void ) dtmkdir("/var/dt/tmp", 01777, 1); dtmkdir("/var/dt/appconfig", 0777, 1); dtmkdir("/var/dt/appconfig/appmanager", 0777, 1); + /* libICE makes /tmp/.ICE-unix only as root; NetBSD creates it nowhere + * (cleartmp only clears /tmp). Without it the session manager has no + * local ICE socket ("_IceTransmkdir: ERROR: euid != 0, directory + * /tmp/.ICE-unix will not be created", 2026-11-18) and its clients go + * over TCP to the host name, which need not resolve. 1777 root, as + * libICE itself would make it. */ + dtmkdir("/tmp/.ICE-unix", 01777, 1); } static void