Bug 97795 - up2date unusable if root's $HOME is not /root
Summary: up2date unusable if root's $HOME is not /root
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: Red Hat Enterprise Linux 2.1
Classification: Red Hat
Component: up2date
Version: 2.1
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Adrian Likins
QA Contact: Fanny Augustin
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-06-21 10:33 UTC by Joe Orton
Modified: 2007-11-30 22:06 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2003-06-25 00:11:17 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Joe Orton 2003-06-21 10:33:00 UTC
On one system I had to move root's $HOME away from /root after / got near full.
This appears to break up2date, which continually prompts to add the GPG key to
the keyring, and fails to add it when requested.

/usr/share/rhn/up2date_client/gpgUtils.py 

has a hard-coded:

gpg_home_dir = "/root/.gnupg"

which should really be picked up from $HOME I would have thought.

Comment 1 Adrian Likins 2003-06-25 00:11:17 UTC
$HOME was often invalid in testing for various reasons (most related
to su/sudo/etc) so it was hardcoded. 

Comment 2 Joe Orton 2003-06-25 07:12:42 UTC
Picking it up from getpwuid(0)->pw_dir would be a reliable method.


Note You need to log in before you can comment on or make changes to this bug.