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

Bug#213905: marked as done (No own logos with xdm: xdm error: Unable to stat() pixmap file)



Your message dated Fri, 10 Oct 2003 01:32:38 -0500
with message-id <20031010063238.GC900@deadbeast.net>
and subject line Bug#213905: Trailing <space> may cause the problem.
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 3 Oct 2003 11:30:48 +0000
>From p18y008@public.uni-hamburg.de Fri Oct 03 06:30:35 2003
Return-path: <p18y008@public.uni-hamburg.de>
Received: from public.uni-hamburg.de [134.100.32.55] 
	by master.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1A5O8o-0004Ar-00; Fri, 03 Oct 2003 06:30:35 -0500
Received: from localhost (loopback [127.0.0.1])
	by public.uni-hamburg.de (8.12.10/8.12.9) with ESMTP id h93BUWSS014810
	(version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO)
	for <submit@bugs.debian.org>; Fri, 3 Oct 2003 13:30:32 +0200
Date: Fri, 3 Oct 2003 13:29:38 +0200 (DFT)
From: Matthias Dehn <p18y008@public.uni-hamburg.de>
To: submit@bugs.debian.org
Subject: No own logos with xdm: xdm error: Unable to stat() pixmap file
Message-ID: <[🔎] Pine.A41.4.44.0310031256380.56322-100000@public.uni-hamburg.de>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Delivered-To: submit@bugs.debian.org
X-Spam-Status: No, hits=-5.0 required=4.0
	tests=HAS_PACKAGE
	version=2.53-bugs.debian.org_2003_10_1
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.53-bugs.debian.org_2003_10_1 (1.174.2.15-2003-03-30-exp)


Package: xdm
Version: 4.1.0-16

It is not possible to chose an own logo for the login screen via xdm in
/etc/X11/xdm/Xresources. The login widget shows the text only. The
delivered logos  (debian.xpm, debianbw.xpm, XFree86.xpm, XFree86bw.xpm)
can be used without any problems.

One may (hopefully) reproduce the error the following way:

* In /etc/X11/xdm/pixpaps:

/etc/X11/xdm/pixmaps# cp debian.xpm test.xpm
/etc/X11/xdm/pixmaps# ls -l
        (...)
-rw-r--r--    1 root     root        54701 16. Apr 2002  debian.xpm
-rw-r--r--    1 root     root        54701  3. Okt 12:05 test.xpm
        (...)

* Changing /usr/X11R6/lib/X11/xdm/Xresources:

        (...)
#if PLANES >= 8
  xlogin*logoFileName: /etc/X11/xdm/pixmaps/test.xpm
! xlogin*LogoFileName: /etc/X11/xdm/pixmaps/debian.xpm
#else
        (...)

* Restarting X

* In /var/log/xdm.log:
xdm error (pid 961): Unable to stat() pixmap file
/etc/X11/xdm/pixmaps/test.xpm

* A small C-program shows no difference of stat()-return values, of
course:
---snip--: test.c :---
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <stdio.h>

const char test[]   = "/etc/X11/xdm/pixmaps/test.xpm";
const char debian[] = "/etc/X11/xdm/pixmaps/debian.xpm";

int main()
{
  struct stat* buf;
  printf("stat(\"%s\", buf) = %d \n",
         test, stat(test,buf));
  printf("stat(\"%s\", buf) = %d \n",
         debian, stat(debian,buf));

  return 0;
}
---snap---

* It returns:

# ./test
stat("/etc/X11/xdm/pixmaps/test.xpm", buf) = 0
stat("/etc/X11/xdm/pixmaps/debian.xpm", buf) = 0

* I'm using Debian GNU/Linux 2.4, Kernel 2.4.18-bf2.4, libc 2.2.5

Thanks a lot for any useful hint.

        Cheers,
                Matthias

P.S.: Below everything of /etc/X11/xdm/Xresources

---snip---
! $Xorg: Xresources,v 1.3 2000/08/17 19:54:17 cpqbld Exp $
!
!
! $XFree86: xc/programs/xdm/config/Xres.cpp,v 1.3 2000/11/27 05:06:46
dawes Exp $
!


xlogin*login.translations: #override \
        Ctrl<Key>R: abort-display()\n\
        <Key>F1: set-session-argument(failsafe) finish-field()\n\
        <Key>Delete: delete-character()\n\
        <Key>Left: move-backward-character()\n\
        <Key>Right: move-forward-character()\n\
        <Key>Home: move-to-begining()\n\
        <Key>End: move-to-end()\n\
        Ctrl<Key>KP_Enter: set-session-argument(failsafe)
finish-field()\n\
        <Key>KP_Enter: set-session-argument() finish-field()\n\
        Ctrl<Key>Return: set-session-argument(failsafe) finish-field()\n\
        <Key>Return: set-session-argument() finish-field()

xlogin*greeting: Welcome on CLIENTHOST!
xlogin*namePrompt: \040\040\040\040\040\040\040Login:

xlogin*fail: Login incorrect

#if WIDTH >= 1024
xlogin*greetFont: -adobe-helvetica-bold-o-normal--25-180-100-100-p-138-iso8859-1
xlogin*font: -adobe-helvetica-medium-r-normal--20-140-100-100-p-100-iso8859-1
xlogin*promptFont: -adobe-helvetica-bold-r-normal--20-140-100-100-p-105-iso8859-1
xlogin*failFont: -adobe-helvetica-bold-r-normal--20-140-100-100-p-105-iso8859-1
#if PLANES >= 8
! Changed by mdehn:
  xlogin*logoFileName: /etc/X11/xdm/pixmaps/test.xpm
! xlogin*logoFileName: /usr/X11R6/lib/X11/xdm/pixmaps/phoenixc2.xpm
! xlogin*LogoFileName: /etc/X11/xdm/pixmaps/debian.xpm
! xlogin*logoFileName: /usr/X11R6/lib/X11/xdm/pixmaps/XFree86.xpm
#else
! Changed by mdehn:
! xlogin*logoFileName: /usr/X11R6/lib/X11/xdm/pixmaps/phoenix.xpm
xlogin*logoFileName: /usr/X11R6/lib/X11/xdm/pixmaps/debianbw.xpm
#endif
#else
xlogin*greetFont:
-adobe-helvetica-bold-o-normal--14-140-75-75-p-82-iso8859-1
xlogin*font: -adobe-helvetica-medium-r-normal--12-120-75-75-p-67-iso8859-1
xlogin*promptFont: -adobe-helvetica-bold-r-normal--12-120-75-75-p-70-iso8859-1
xlogin*failFont: -adobe-helvetica-bold-r-normal--12-120-75-75-p-70-iso8859-1
#endif

#ifdef COLOR

xlogin*borderWidth: 1
xlogin*frameWidth: 5
xlogin*innerFramesWidth: 2
xlogin*shdColor: grey30
xlogin*hiColor: grey90
xlogin*background: grey
!xlogin*background: black
!xlogin*foreground: darkgreen
xlogin*greetColor: Blue3

xlogin*failColor: red
*Foreground: black
*Background: #fffff0
!*Background: #ff8800
#else

xlogin*borderWidth: 3
xlogin*frameWidth: 0
xlogin*innerFramesWidth: 1
xlogin*shdColor: black
xlogin*hiColor: black

#endif

xlogin*useShape: true
xlogin*logoPadding: 10


XConsole.text.geometry: 480x130
XConsole.verbose:       true
XConsole*iconic:        true
XConsole*font:          fixed

Chooser*geometry:               700x500+300+200
Chooser*allowShellResize:       false
Chooser*viewport.forceBars:     true
Chooser*label.font:             *-new century schoolbook-bold-i-normal-*-240-*
Chooser*label.label:            XDMCP Host Menu from CLIENTHOST
Chooser*list.font:              -*-*-medium-r-normal-*-*-230-*-*-c-*-iso8859-1
Chooser*Command.font:           *-new century schoolbook-bold-r-normal-*-180-*
---snap---

EOF




---------------------------------------
Received: (at 213905-done) by bugs.debian.org; 10 Oct 2003 06:32:41 +0000
>From branden@deadbeast.net Fri Oct 10 01:32:39 2003
Return-path: <branden@deadbeast.net>
Received: from dhcp065-026-182-085.indy.rr.com (redwald.deadbeast.net) [65.26.182.85] 
	by master.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1A7qpL-0003ft-00; Fri, 10 Oct 2003 01:32:39 -0500
Received: by redwald.deadbeast.net (Postfix, from userid 1000)
	id E96BB64268; Fri, 10 Oct 2003 01:32:38 -0500 (EST)
Date: Fri, 10 Oct 2003 01:32:38 -0500
From: Branden Robinson <branden@debian.org>
To: 213905-done@bugs.debian.org
Subject: Re: Bug#213905: Trailing <space> may cause the problem.
Message-ID: <20031010063238.GC900@deadbeast.net>
References: <[🔎] Pine.A41.4.44.0310100044420.60876-100000@public.uni-hamburg.de>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="HG+GLK89HZ1zG0kk"
Content-Disposition: inline
In-Reply-To: <[🔎] Pine.A41.4.44.0310100044420.60876-100000@public.uni-hamburg.de>
User-Agent: Mutt/1.5.4i
Delivered-To: 213905-done@bugs.debian.org
X-Spam-Status: No, hits=-5.7 required=4.0
	tests=EMAIL_ATTRIBUTION,QUOTED_EMAIL_TEXT
	version=2.53-bugs.debian.org_2003_10_09
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.53-bugs.debian.org_2003_10_09 (1.174.2.15-2003-03-30-exp)


--HG+GLK89HZ1zG0kk
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Oct 10, 2003 at 12:53:40AM +0200, Matthias Dehn wrote:
> If there is a <space> (0x20) between the last letter of the
> *.xpm-filename and the <EOL> (0x0a) in the Xresource-file, the error
> occurs.

Thanks for following up.

The problem is, then, in the words of the HAL 9000, "human error".

I suggest using a text editor with syntax highlighting configured by
default to show you things like trailing whitespace.

For example, I use Vim with the following stuff in my .vimrc:

:set listchars=3Dtab:=BB=AD,trail:=B7
:set list

Those funny characters are 0xBB, 0xB7, and 0xB7 again in ISO Latin-1
(ISO 8859-1).  See iso_8859-1(7) for more information.

Closing this report.

--=20
G. Branden Robinson                |
Debian GNU/Linux                   |           If existence exists,
branden@debian.org                 |           why create a creator?
http://people.debian.org/~branden/ |

--HG+GLK89HZ1zG0kk
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iEYEARECAAYFAj+GUoYACgkQ6kxmHytGonx2hwCghRpBM0rCyKX+hucKFf/y2NH8
IYIAoI8smbJt2RLjjpddTlattx1chLQQ
=yfHf
-----END PGP SIGNATURE-----

--HG+GLK89HZ1zG0kk--



Reply to: