Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 83959 - app-misc/lhinv-1.1-r4 Gets error: "Not a directory at /usr/bin/lhinv line 491."
Summary: app-misc/lhinv-1.1-r4 Gets error: "Not a directory at /usr/bin/lhinv line 491."
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High minor
Assignee: Gentoo TreeCleaner Project
URL:
Whiteboard: REMOVED
Keywords: PMASKED
Depends on:
Blocks:
 
Reported: 2005-03-03 07:59 UTC by Peter Riesett
Modified: 2006-10-25 12:21 UTC (History)
1 user (show)

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 Peter Riesett 2005-03-03 07:59:30 UTC
I get the error:

   Not a directory at /usr/bin/lhinv line 491.

Running the apps-misc/lhinv 1.1-r4.

Reproducible: Always
Steps to Reproduce:
1.run the program.
Actual Results:  
I got the aformentioned error.

Expected Results:  
Not to get the error.

Here's my quick hack to get it working:

CHANGE

opendir DIR, $query or die $!;
@elems = grep !/^\.\.?$/, readdir DIR;
closedir DIR;

TO

if(-d $query){
     opendir DIR, $query or die $!;
     @elems = grep !/^\.\.?$/, readdir DIR;
     closedir DIR;
}

IN /usr/bin/lhinv.
Comment 1 Alec Warner (RETIRED) archtester gentoo-dev Security 2006-08-03 16:20:34 UTC
old 
Comment 2 Doug Goldstein (RETIRED) gentoo-dev 2006-10-25 12:11:33 UTC
Removed.