Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 39899 - keychain uses fqdn instead of hostname
Summary: keychain uses fqdn instead of hostname
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: Keychain (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Keychain Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-30 12:20 UTC by Scott Taylor (RETIRED)
Modified: 2004-07-24 20:08 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Scott Taylor (RETIRED) gentoo-dev 2004-01-30 12:20:18 UTC
staylor@Star staylor $ cat .bash_profile 
# /etc/skel/.bash_profile:
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/skel/.bash_profile,v 1.10 2002/11/18 19:39:22 azarah Exp $
keychain --quiet ~/.ssh/id_rsa ~/.ssh/id_dsa
. ~/.keychain/${HOSTNAME}-sh

staylor@Star staylor $ ll .keychain/
total 8
-rw-------    1 staylor  users          80 Jan 30 13:10 Star.BerthoudWireless.net-csh
-rw-------    1 staylor  users         110 Jan 30 13:10 Star.BerthoudWireless.net-sh
staylor@Star staylor $ echo ${HOSTNAME}
Star
staylor@Star staylor $ uname -n
Star.BerthoudWireless.net
Comment 1 Aron Griffis (RETIRED) gentoo-dev 2004-07-24 20:08:23 UTC
Bash uses FQDN for ${HOSTNAME}, so this is invalid.  Best I can guess is that your shell was started before hostname was set.  If you're using dhcpcd and telling it to set your hostname.. don't.