Apport hook prompts 3 times for password
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apport (Ubuntu) |
Fix Released
|
Medium
|
Martin Pitt | ||
xorg (Ubuntu) |
Fix Released
|
Medium
|
Bryce Harrington |
Bug Description
Binary package hint: xorg
Noticed after requesting the gdm logs, the xorg apport hook displays 3 password prompts.
Probably one each for the three gdm files it's attaching. Guessing it should do the copies all in one operation?
ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: xorg 1:7.6~3ubuntu3
ProcVersionSign
Uname: Linux 2.6.38-
Architecture: i386
CompisitorRunning: None
CompizPlugins: [core,bailer,
DRM.card0.DIN.1:
status: disconnected
enabled: disabled
dpms: Off
modes:
edid-base64:
Date: Thu Feb 10 10:45:34 2011
DistUpgraded: Fresh install
DistroCodename: natty
DistroVariant: ubuntu
GraphicsCard: Subsystem: PC Partner Limited Sapphire HD 4850 512MB GDDR3 PCI-E Dual Slot Fansink [174b:e810]
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Alpha i386 (20110202)
MachineType: Gigabyte Technology Co., Ltd. P67A-UD4
ProcEnviron:
LANGUAGE=en_US:en
PATH=(custom, user)
LANG=C
SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=
Renderer: Hardware acceleration
SourcePackage: xorg
dmi.bios.date: 11/25/2010
dmi.bios.vendor: Award Software International, Inc.
dmi.bios.version: F4
dmi.board.name: P67A-UD4
dmi.board.vendor: Gigabyte Technology Co., Ltd.
dmi.board.version: x.x
dmi.chassis.type: 3
dmi.chassis.vendor: Gigabyte Technology Co., Ltd.
dmi.modalias: dmi:bvnAwardSof
dmi.product.name: P67A-UD4
dmi.sys.vendor: Gigabyte Technology Co., Ltd.
version.compiz: compiz 1:0.9.2.
version.libdrm2: libdrm2 2.4.23-1ubuntu3
version.
version.
version.
version.
version.
Changed in xorg (Ubuntu): | |
assignee: | Martin Pitt (pitti) → Bryce Harrington (bryce) |
tags: | added: patch |
Changed in xorg (Ubuntu): | |
status: | Triaged → Fix Committed |
Unfortunately, in looking into this it's not easy to fix, at least not in the apport hook itself.
The code in question is: file_contents( '/var/log/ gdm/:0. log')
report[ 'GdmLog1' ] = root_collect_ file_contents( '/var/log/ gdm/:0. log.1')
report[ 'GdmLog2' ] = root_collect_ file_contents( '/var/log/ gdm/:0. log.2')
report['GdmLog'] = root_collect_
Each of the root_collect_ file_contents( ) calls essentially calls and return root_command_ output( ['cat', path]). root_command_ output( ) is one of the stock apport lib routines.
So the question is, why isn't root_command_ output( ) caching the sudo permission from one call to the next?