[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#962989: Please enhance /etc/init.d/X11-common script to additionally manage /tmp/.font-unix socket directory



Package: x11-common
Version: 1:7.7+19
Severity: normal
Tags: patch

Currently, xfstt package manages the /tmp/.font-unix socket directory
privately, creating it during start-up and removing during its shutdown
(see bug #962988 <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=962988>).

This may cause problems if multiple font server instances (e. g.: both xfs and
xfstt) are installed, sharing the same socket directory.

-- System Information:
Distributor ID:	Debian
Description:	Devuan GNU/Linux 3 (beowulf)
Release:	3
Codename:	beowulf
Architecture: x86_64

Kernel: Linux 4.9.0-11-amd64 (SMP w/8 CPU cores)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8), LANGUAGE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages x11-common depends on:
ii  lsb-base  10.2019051400

x11-common recommends no packages.

x11-common suggests no packages.

-- no debconf information
--- /etc/init.d/x11-common.orig	2020-06-17 02:25:21.261416236 +0300
+++ /etc/init.d/x11-common	2020-06-17 02:27:55.694594122 +0300
@@ -14,6 +14,7 @@
 PATH=/usr/bin:/usr/sbin:/bin:/sbin
 SOCKET_DIR=.X11-unix
 ICE_DIR=.ICE-unix
+FONT_DIR=.font-unix
 
 . /lib/lsb/init-functions
 if [ -f /etc/default/rcS ]; then
@@ -81,7 +82,7 @@
 }
 
 do_status () {
-    if [ -d "/tmp/$ICE_DIR" ] && [ -d "/tmp/$SOCKET_DIR" ]; then
+    if [ -d "/tmp/$ICE_DIR" ] && [ -d "/tmp/$SOCKET_DIR" ] && [ -d "/tmp/$FONT_DIR" ]; then
       return 0
     else
       return 4
@@ -95,6 +96,7 @@
     fi
     set_up_dir "$SOCKET_DIR"
     set_up_dir "$ICE_DIR"
+    set_up_dir "$FONT_DIR"
     if [ "$VERBOSE" != no ]; then
       log_end_msg 0
     fi

Reply to: