Bug 97795

Summary: up2date unusable if root's $HOME is not /root
Product: Red Hat Enterprise Linux 2.1 Reporter: Joe Orton <jorton>
Component: up2dateAssignee: Adrian Likins <alikins>
Status: CLOSED DEFERRED QA Contact: Fanny Augustin <fmoquete>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.1   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-06-25 00:11:17 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.