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

Bug#325615: sessreg thinks we have BSDish UTMP



Package: xutils
Version: 6.8.2.dfsg.1-5
Severity: normal
Tags: patch

Hi!

On GNU/kFreeBSD, sessreg attempts to setup BSDish UTMP (and fails), bringing
xdm, kdm and probably other login managers to fail starting a session.

The patch is very simple, I'm attaching it.

-- System Information:
Debian Release: testing/unstable
Architecture: kfreebsd-i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: GNU/kFreeBSD 5.3-1
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)

Versions of packages xutils depends on:
ii  cpp                       4:4.0.1-3      The GNU C preprocessor (cpp)
ii  libc0.1                   2.3-1+kbsd.11  GNU C Library: Shared libraries an
ii  libfreetype6              2.1.10-1       FreeType 2 font engine, shared lib
ii  libfs6                    6.8.2.dfsg.1-5 X Font Server library
ii  libncurses5               5.4-9          Shared libraries for terminal hand
ii  x11-common                6.8.2.dfsg.1-5 X Window System (X.Org) infrastruc
ii  zlib1g                    1:1.2.3-3      compression library - runtime

xutils recommends no packages.

-- no debconf information
Use SysV UTMP instead of BSD one (this fixes runtime failure on xdm/kdm/etc)

--- xc/programs/xdm/sessreg.c~	2005-02-28 18:35:18.000000000 +0100
+++ xc/programs/xdm/sessreg.c	2005-08-29 23:16:45.000000000 +0200
@@ -74,7 +74,7 @@
 # include	<pwd.h>
 #endif
 
-#if defined(SVR4) || defined(linux)
+#if defined(SVR4) || defined(linux) || defined(__GLIBC__)
 #define SYSV
 #endif
 

Reply to: