Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 212190 - Divide by zero error if homedir is set to /
Divide by zero error if homedir is set to /
Product: Fedora
Classification: Fedora
Component: keychain (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Alexander Dalloz
Fedora Extras Quality Assurance
Depends On:
Blocks: FE7Target
  Show dependency treegraph
Reported: 2006-10-25 11:43 EDT by Erinn Looney-Triggs
Modified: 2007-11-30 17:11 EST (History)
1 user (show)

See Also:
Fixed In Version: 2.6.8-1
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-11-04 17:29:30 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Patch to resolve issue for csh (520 bytes, patch)
2006-10-25 11:43 EDT, Erinn Looney-Triggs
no flags Details | Diff

  None (edit)
Description Erinn Looney-Triggs 2006-10-25 11:43:55 EDT
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):

How reproducible:
I am using tcsh so the /etc/profile.d/keychain.csh is the issue.

Steps to Reproduce:
1.Set homedir to '/'

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.
Comment 1 Erinn Looney-Triggs 2006-10-25 11:43:55 EDT
Created attachment 139358 [details]
Patch to resolve issue for csh
Comment 2 Alexander Dalloz 2006-11-04 17:28:32 EST
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.

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