Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 152793 - Divide by zero error if homedir is set to /
Summary: Divide by zero error if homedir is set to /
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: Keychain (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Keychain Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-25 08:50 UTC by Erinn Looney-Triggs
Modified: 2006-10-26 11:17 UTC (History)
0 users

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


Attachments
Patch to solve issue for csh (keychain.patch,520 bytes, patch)
2006-10-25 08:50 UTC, Erinn Looney-Triggs
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Erinn Looney-Triggs 2006-10-25 08:50:32 UTC
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, though I think this is still applicable to the latest version

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
Comment 1 Erinn Looney-Triggs 2006-10-25 08:50:58 UTC
Created attachment 100465 [details, diff]
Patch to solve issue for csh
Comment 2 Aron Griffis (RETIRED) gentoo-dev 2006-10-26 11:17:36 UTC
Keychain upstream (that's me) doesn't provide this file.  It's a fedora add-on.  Please file this at bugzilla.redhat.com