[email protected]
[Top] [All Lists]

Bug#370787: marked as forwarded (FindXServer fails for usernames > 8 cha

Subject: Bug#370787: marked as forwarded FindXServer fails for usernames > 8 chars because of #367428
From: Debian Bug Tracking System
Date: Tue, 06 Jun 2006 14:34:50 -0700
Your message dated Tue, 6 Jun 2006 23:20:52 +0200
with message-id <[email protected]>
has caused the Debian Bug report #370787,
regarding FindXServer fails for usernames > 8 chars because of #367428
to be marked as having been forwarded to the upstream software
author(s) [email protected]

(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)

--- Begin Message ---
Subject: Fwd: Bug#370787: FindXServer fails for usernames > 8 chars because of #367428
From: martin f krafft
Date: Tue, 6 Jun 2006 23:20:52 +0200
tags 370787 upstream

I think EspeonEefi wants a release dedicated to him/her, just like
Joey Hess did. :)

----- Forwarded message from EspeonEefi <[email protected]> -----

For reference, see http://bugs.debian.org/367428 "sysvinit: last cut the
username if its longer than eight characters"

Because of the above bug, FindXServer in /usr/sbin/hibernate fails on
usernames longer than eight characters (mine, espeoneefi, is 10). At
line 196, instead of xuser being set to espeoneefi, as intended, it is
set to espeonee, making all the rest of that for loop fail.

Further bugginess in FindXServer causes this failure not to be
rectified. Lines 216 and 217 suffer from the same mawk in `` bug that
manifested itself with LockXScreenSaver. (Maybe there should be a full
audit of the source tree to make sure there aren't more of these lurking
around?) Replacing the `` in these lines with $() seems to make things
better. (The same replacement could be done in line 218 if desired,
though it seems that this invocation of mawk is perfectly happy inside

(Note though, that by "make things better," I mean that XUSER gets set
to root and XAUTHORITY to /var/lib/gdm/:0.Xauth, since I log into my
GNOME session from GDM. I'm not sure whether this setting to root
instead of regular user espeoneefi breaks any assumptions elsewhere. I
simply know that it fixes the problem which led me to find this
bug--that the xstatus display using osd_cat was failing to work when I
invoked hibernate through ACPI events.)

One other interesting note... In the original (with the buggy mawk in
``), we reach line 227 with $xuser being empty. However, the test there
turns out to be buggy; [ -n  ] (which is what that test expands to with
an empty $xuser) actually has a return code of 0, not what is intended
at all. Instead, $xuser should be put in "" (i.e., [ -n "$xuser" ]) so
that the test will work as intended. (This might be another subtle shell
scripting bug that might be worth looking back over the source tree

----- End forwarded message -----

 .''`.     martin f. krafft <[email protected]>
: :'  :    proud Debian developer and author: http://debiansystem.info
`. `'`
  `-  Debian - when you have better things to do than fixing a system
dies ist eine manuell generierte email. sie beinhaltet
tippfehler und ist auch ohne großbuchstaben gültig.

--- End Message ---
<Prev in Thread] Current Thread [Next in Thread>
  • Bug#370787: marked as forwarded (FindXServer fails for usernames > 8 chars because of #367428), Debian Bug Tracking System <=