Package: libx11-6
Version: 4.3.0.dfsg.1-10
Severity: normal

I do not know if this is a bug in xdm, xserver-xfree86, libx11-6
or even in the example program. But when I exchange the execl
in the program given below with a call to main(), this error
does not happen, so this seems to have at least something todo
with libx11-6

Hochachtungsvoll,
        Bernhard R. Link

[EMAIL PROTECTED]:~/xtest$ xauth list
192.168.2.75:0  MIT-MAGIC-COOKIE-1  e70163149b4e564dd7ec1a22cdc33bf4
laptop/unix:0  MIT-MAGIC-COOKIE-1  e70163149b4e564dd7ec1a22cdc33bf4
192.168.2.75:0  XDM-AUTHORIZATION-1  edb4ac652e525c5100d4085ba3696f4b
laptop/unix:0  XDM-AUTHORIZATION-1  edb4ac652e525c5100d4085ba3696f4b
[EMAIL PROTECTED]:~/xtest$ cat test.c
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <X11/Xlib.h>
Display *dpy;
int main() {
        dpy = XOpenDisplay(":0");
        if (dpy == NULL) {
                fprintf(stderr, "cannot open display :0\n");
                exit(1);
        }
        fprintf(stderr, "opened display :0\n");
        XCloseDisplay(dpy);
        execl("./test","./test", NULL);
        exit(0);
}
[EMAIL PROTECTED]:~/xtest$ make
gcc -g -O0 -Wall -L/usr/X11R6/lib -lX11 test.c -o test
[EMAIL PROTECTED]:~/xtest$ ./test 
opened display :0
Xlib: connection to ":0.0" refused by server
Xlib: XDM authorization key matches an existing client!
cannot open display :0
[EMAIL PROTECTED]:~/xtest$ echo $?
1

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.7-1-686
Locale: LANG=C, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages libx11-6 depends on:
ii  debconf [debconf-2.0]    1.4.42          Debian configuration management sy
ii  libc6                    2.3.2.ds1-20    GNU C Library: Shared libraries an
ii  xfree86-common           4.3.0.dfsg.1-10 X Window System (XFree86) infrastr
ii  xlibs-data               4.3.0.dfsg.1-10 X Window System client data

-- debconf information:
  libx11-6/migrate_xkb_dir: true



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to