Bug 436241

Summary: ferror requires absolute path to executable; doesn't use PATH
Product: [Fedora] Fedora Reporter: Dave Malcolm <dmalcolm>
Component: fryskAssignee: Andrew Cagney <cagney>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: 8CC: mjw, pmuldoon, swagiaal
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 0.2.1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-04-07 18:22:33 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Dave Malcolm 2008-03-06 02:26:40 UTC
Description of problem:
ferror requires absolute path to executable; doesn't use PATH

Following example from ferror man page:
EXAMPLE
           ferror -e "No such file or directory" -- ls fake

and omitting the path, it fails to find the executable, this is:
[david@brick ~]$ ferror -e "No such file or directory" -- ls fake
Error: open: No such file or directory (file /home/david/ls)

Specifying full path to exe works:
[david@brick ~]$ ferror -e "No such file or directory" -- /bin/ls fake
Tracing 7233.7233

Tool would be much more usable if it looked in PATH, allowing you to omit the
absolute location of the exe.  As it is, the example in the manpage fails.

Version-Release number of selected component (if applicable):
frysk-0.0.1.2008.02.29.rh1-1.fc8

How reproducible:
100%

Comment 1 Andrew Cagney 2008-04-07 18:22:33 UTC
My fix:

$ ferror -- ls loop.c
Tracing 2485.2485
loop.c