Your message dated Wed, 22 Apr 2009 11:02:04 +0000
with message-id <[email protected]>
and subject line Bug#502141: fixed in acpi-support 0.121-1
has caused the Debian Bug report #502141,
regarding acpi-support-base: Yet another (potential) problem with getXuser()
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 this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
502141: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=502141
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: acpi-support-base
Version: 0.109-9
Severity: minor
Tags: patch

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

getXuser() just switched from finger to w a month ago, and that was a Good 
Thing.
But w has a problem as well:

- -f   Toggle  printing the from (remote hostname) field.  The default as
     released is for the from field to not be  printed,  although  your
     system  administrator or distribution maintainer may have compiled
     a version in which the from field is shown by default.

(from man w)

There is not a way to force w to show the From field; just a way to toggle from 
the default behavior.
And it looks like the default behaviour in debian is diverted from mainstream 
at compile time.
I guess things could change without any prior notice, leaving us with a broken 
script; maybe it's better to rely on pinky.

$ pinky -fw
root     *tty2     00:04  2008-10-13 22:46
luca      tty7            2008-10-13 20:58 :0
root      pts/5    00:02  2008-10-13 22:46 :0.0
luca      pts/6    00:02  2008-10-13 22:47 :0.0

We need to pick the second and the last fields, which makes:
user=`pinky -fw | awk '{ if ($2 == ":'$displaynum'" || $(NF) == 
":'$displaynum'" ) { print $1; exit; } }'`
Since we check the strict equality to :displaynum, it doesn't matter if some 
lines do not have the From field and we read the login time.
Pinky is included in coreutils, so we don't need to depend on it; debian 
version does not divert from the mainstream behaviour; furthermore, it has a 
funny name.
Comments?
Luca

P.S.
I use gdm; can someone using xdm test it please? I don't see why it shouldn't 
work, but you never know...
P.P.S.
I think it's still quite ugly to get the display owner this way; but I was not 
able to find a sane way to do it.
I'll propose this also for a script in fglrx-atieventsd that is using finger at 
the moment.

- -- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-1-686 (SMP w/2 CPU cores)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages acpi-support-base depends on:
ii  acpid                    1.0.6-13        Utilities for using ACPI power man
ii  console-tools [console-u 1:0.2.3dbs-65.1 Linux console and font utilities

acpi-support-base recommends no packages.

Versions of packages acpi-support-base suggests:
ii  acpi-support                  0.109-9    scripts for handling many ACPI eve

- -- no debconf information

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

iEYEARECAAYFAkjzu6oACgkQ4OR+1T4ba9hf5wCfTwDypnyhM6nXniuqLUMZHJ6d
nEYAnRxPIZnx+hhEBRC9XJrAGU7L9M44
=lGH4
-----END PGP SIGNATURE-----



--- End Message ---
--- Begin Message ---
Source: acpi-support
Source-Version: 0.121-1

We believe that the bug you reported is fixed in the latest version of
acpi-support, which is due to be installed in the Debian FTP archive:

acpi-support-base_0.121-1_all.deb
  to pool/main/a/acpi-support/acpi-support-base_0.121-1_all.deb
acpi-support_0.121-1.diff.gz
  to pool/main/a/acpi-support/acpi-support_0.121-1.diff.gz
acpi-support_0.121-1.dsc
  to pool/main/a/acpi-support/acpi-support_0.121-1.dsc
acpi-support_0.121-1_amd64.deb
  to pool/main/a/acpi-support/acpi-support_0.121-1_amd64.deb
acpi-support_0.121.orig.tar.gz
  to pool/main/a/acpi-support/acpi-support_0.121.orig.tar.gz



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Michael Meskes <[email protected]> (supplier of updated acpi-support package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Wed, 22 Apr 2009 12:53:08 +0200
Source: acpi-support
Binary: acpi-support acpi-support-base
Architecture: source amd64 all
Version: 0.121-1
Distribution: unstable
Urgency: low
Maintainer: Debian Acpi Team <[email protected]>
Changed-By: Michael Meskes <[email protected]>
Description: 
 acpi-support - scripts for handling many ACPI events
 acpi-support-base - scripts for handling base ACPI events such as the power 
button
Closes: 456778 484934 496570 497377 501607 502141 503320 504012 509588 510619 
515784 515794 516662 518570 520669 524838 524841 524986
Changes: 
 acpi-support (0.121-1) unstable; urgency=low
 .
   * New upstream version:
     * Correct suspend.d/55-down-interfaces.sh to point to
       /var/run/network/ifstate rather than /etc/network/run/ifstate.
     * Drop events/asus-mail: On newer Asus, like the eeePc, this is an
       ACPI event generated by pulling out the power chord, not pressing
       a mail key. The latter should be handled by hal-info now; if you
       have an Acer laptop with a mail key, please report a bug against
       hal-info, closes: #516662
     * Drop acpi_fakekey translations for keys that are correctly handled
       in the kernel input layer:
       - events/ibm-sleepbtn
       - events/ibm-lockbtn, thinkpad-lockorbattery.sh
       - events/ibm-hibernatebtn
       - events/lenovo-lockbtn
       - events/ibm-videobtn, closes: #456778, #515794
       - events/thinkpad-mute, always-mute.sh
       - events/thinkpad-volume-down
       - events/thinkpad-volume-up
       - events/thinkpad-thinklight, thinkpad-thinklight.sh
       - events/tosh-brightness-up
       - events/tosh-brightness-down, toshbright.sh
       - events/tosh-mute
       - events/tosh-sleep
       - events/sony-hibernate
       - events/sony-brightness-up, events/sony-brightness-down, sonybright.sh
       - events/thinkpad-brightness-down, events/thinkpad-brightness-up,
         thinkpad-brightness-up.sh, thinkpad-brightness-down.sh
     * Also drop events/thinkpad-zoom, thinkpad-zoom.sh because this key
       isn't working correctly with or without this script and should be
       fixed up in hal.
   * Simplified packaging.
   * Removed obsolete config files if they are unchanged.
   * Do not install 90-hdparm.sh four times, closes: #509588
   * Thinkpad_acpi.modprobe was removed upstream because it is said to be not
     needed anymore, closes: #518570
   * Restore old scripts that were incorrectly merged, closes: #524986
   * Made getXuser() use pinky instead of w, closes: #502141, #510619, #515784
   * Added patch to adjust panabright.sh for new panasonic_laptop driver that
     uses /sys instead of /proc, closes: #524838, #524841
   * Deconfigure wireless devices before powering them down, closes: #496570
   * Fixed incorrect variable usage in madwifi handling, closes: #501607
   * Clarified documentation about acpi-support method, closes: #484934, #497377
   * Recognize 901 as an EeePC as well, closes: #504012
   * Added a sync call to suspendorhibernate, closes: #503320
   * Also check for KDE4 powerdevil in CheckPolicy, closes: #520669
   * Added real package console-tools to dependency on virtual package
     console-utilities.
   * Made all scripts use invoke-rc.d where possible.
Checksums-Sha1: 
 31f42a8ca3d2edf32c4b830547397688e1902ca2 1203 acpi-support_0.121-1.dsc
 654da27b17c618fab061370a43e67a85ddc3c84a 28001 acpi-support_0.121.orig.tar.gz
 432ad700f2bb042c8b6da983861e20e692319a54 25937 acpi-support_0.121-1.diff.gz
 02d2c782bf041a4bdbf9ed89e9212ef4a373bb45 44088 acpi-support_0.121-1_amd64.deb
 bdf9294aa5ac03a800f59fe2fb28d9ccde8c60d8 14432 
acpi-support-base_0.121-1_all.deb
Checksums-Sha256: 
 2fb84220fb56a4d09c4328d0737ba8c9f33554ce5295ea5c9d6f2786b726fd13 1203 
acpi-support_0.121-1.dsc
 57d900f37d1bba0032a5df52699972e4aaec6f9f462d2b3eed77b4bdf0de18b0 28001 
acpi-support_0.121.orig.tar.gz
 f9bafb67dd6d0219b2bb4f1aee5f1ee91f05fdf983898cbe900030d81b70c413 25937 
acpi-support_0.121-1.diff.gz
 0cd9ddd098c64235ae102db2e1bdfbc233a9970ad61f987736c94ac4d4f81f3c 44088 
acpi-support_0.121-1_amd64.deb
 a3492cbe2aa6dec626c1349d7ccbb469045c607a0499ec1b31c0d792e4ef7dfd 14432 
acpi-support-base_0.121-1_all.deb
Files: 
 16fb0fdc71c0b12ae6e6333e5bea34e3 1203 admin optional acpi-support_0.121-1.dsc
 84a5d2620ed2432d26a6dd1dde5f1c75 28001 admin optional 
acpi-support_0.121.orig.tar.gz
 94d3d402544aa03253f49dde7cb635da 25937 admin optional 
acpi-support_0.121-1.diff.gz
 fc0653519326d2ab9d5b8124a25a2a93 44088 admin optional 
acpi-support_0.121-1_amd64.deb
 42f1552ebab81f7fbe7ef2177e9fa1ba 14432 admin optional 
acpi-support-base_0.121-1_all.deb

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

iD8DBQFJ7vgIVkEm8inxm9ERAtI4AJ9sTCINF9U5GvXXvehEX56/210CRwCfYsMt
RxMY62zKHZM9VAytk2bFCK4=
=7IqH
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to