Bug 174070 - Segfault with no LANG in environment
Summary: Segfault with no LANG in environment
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: mc
Version: 4
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jindrich Novy
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-11-24 10:00 UTC by Andy Shevchenko
Modified: 2013-07-02 23:11 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-12-01 10:18:48 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
fix for described problem (451 bytes, patch)
2005-11-24 10:00 UTC, Andy Shevchenko
no flags Details | Diff

Description Andy Shevchenko 2005-11-24 10:00:14 UTC
Description of problem:
mc segfaults when LANG evnvironment variable not set. This is usual situation 
for chroot setup (buildroots, chrooted servers, etc.)

Version-Release number of selected component (if applicable):
Last FC3/4 updates.

How reproducible:
Just unset LANG and try to run.

Actual results:
Segfault.

Expected results:
No segfault.


Additional info:
See attached simple patch which fixes incorrect handle with getenv() return 
value.

Comment 1 Andy Shevchenko 2005-11-24 10:00:14 UTC
Created attachment 121439 [details]
fix for described problem

Comment 2 Jindrich Novy 2005-11-24 15:06:37 UTC
Oops, I forgot to check the impossible ;)

Comment 3 Jindrich Novy 2005-12-01 10:18:48 UTC
This is now fixed since mc-4.6.1a-3.FC4.


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