Bug 218622

Summary: calls error() before definining it
Product: [Fedora] Fedora Reporter: Nalin Dahyabhai <nalin>
Component: mkinitrdAssignee: Peter Jones <pjones>
Status: CLOSED CURRENTRELEASE QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 6.0.14-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-09-14 19:31:15 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 Nalin Dahyabhai 2006-12-06 15:30:39 UTC
Description of problem:
If run as an unprivileged user, mkinitrd uses error() to print its error
message, but it calls error() before it's defined.

Version-Release number of selected component (if applicable):
6.0.2-1

How reproducible:
Always

Steps to Reproduce:
1. (as unprivileged user) /sbin/mkinitrd --help
  
Actual results:
/sbin/mkinitrd: line 28: error: command not found