Package: wdm
Version: 1.27-2.2
Severity: important
When wdm creates the authority-files for the X server, it uses mkstemp
to create the files, but ignores the handed-back filedescriptor from
mkstemp. These fds are also inherited by the X servers spawned by wdm.
This leads to wdm using more than 200 fds in a few days on our
sunray-servers. The following patch fixes the problem:
--- wdm-1.27/src/wdm/auth.c.orig 2005-03-17 01:10:18.000000000 +0100
+++ wdm-1.27/src/wdm/auth.c 2005-03-17 01:12:23.000000000 +0100
@@ -316,7 +316,7 @@
sprintf (d->authFile, "%s/%s/%s/A%s-XXXXXX",
authDir, authdir1, authdir2, cleanname);
#ifdef HAVE_MKSTEMP
- (void) mkstemp (d->authFile);
+ (void) close(mkstemp (d->authFile));
#else
(void) mktemp (d->authFile);
#endif
-- System Information:
Debian Release: 3.1
APT prefers testing
APT policy: (1050, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.4.29
Locale: LANG=C, [EMAIL PROTECTED] (charmap=ISO-8859-15)
Versions of packages wdm depends on:
ii debconf 1.4.30.12 Debian configuration management sy
ii libc6 2.3.2.ds1-20 GNU C Library: Shared libraries an
ii libfontconfig1 2.2.3-4 generic font configuration library
ii libice6 4.3.0.dfsg.1-10 Inter-Client Exchange library
ii libpam-modules 0.76-22 Pluggable Authentication Modules f
ii libpam-runtime 0.76-22 Runtime support for the PAM librar
ii libpam0g 0.76-22 Pluggable Authentication Modules l
ii libsm6 4.3.0.dfsg.1-10 X Window System Session Management
ii libwraster3 0.91.0-7 Shared libraries of Window Maker r
ii libx11-6 4.3.0.dfsg.1-10 X Window System protocol client li
ii libxext6 4.3.0.dfsg.1-10 X Window System miscellaneous exte
ii libxft2 2.1.2-6 FreeType-based font drawing librar
ii libxmu6 4.3.0.dfsg.1-10 X Window System miscellaneous util
ii psmisc 21.5-1 Utilities that use the proc filesy
ii xbase-clients 4.3.0.dfsg.1-10 miscellaneous X clients
ii xlibs 4.3.0.dfsg.1-10 X Keyboard Extension (XKB) configu
ii xutils 4.3.0.dfsg.1-10 X Window System utility programs
-- debconf-show failed
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]