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.
This commit is contained in:
lotherk committed 2026-11-18 06:38:50 +00:00
1 parent 6f27882115
commit 2b141773ce
1 file changed
+7
+7
View File
@@ -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