Description of problem: Divide by zero error occurs if homedir is set to /. I know it isn't common but some folks set root's homedir to '/'. When this happens keychain gives a divide by zero error when you login, this effectivley kills scripts that aren't expecting any feedback. Version-Release number of selected component (if applicable): 2.6.2-1.fc6 How reproducible: I am using tcsh so the /etc/profile.d/keychain.csh is the issue. Steps to Reproduce: 1.Set homedir to '/' 2.login Actual results: Receive divide by zero error Expected results: No output Additional info: This is on Fedora Core 6, though it is applicable to 5 as well.
Created attachment 139358 [details] Patch to resolve issue for csh
Thanks for reporting and providing the fix. Along with an update to the current upstream version I changed the specific Fedora Extras package keychain.csh script, releasing a new package right now.