Bug 144472

Summary: nash: mknod crash on missing arguments
Product: [Fedora] Fedora Reporter: Kasper Dupont <bugzilla>
Component: mkinitrdAssignee: Peter Jones <pjones>
Status: CLOSED RAWHIDE QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 2   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-01-21 20:06:21 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:
Attachments:
Description Flags
Fix getArg none

Description Kasper Dupont 2005-01-07 13:50:42 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3)
Gecko/20040922

Description of problem:
If the internal mknod in nash is used without the required four
arguments it crash on a NULL pointer dereference.

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

How reproducible:
Always

Steps to Reproduce:
1. nash
2. mknod
    

Actual Results:
Segmentation fault (core dumped)

Expected Results:
mknod: usage mknod <path> [c|b] <major> <minor>

Additional info:

Comment 1 Kasper Dupont 2005-01-07 13:53:06 UTC
Created attachment 109464 [details]
Fix getArg

This patch improves getArg to handle cmd==NULL in the way mknodCommand expects.

Comment 2 Peter Jones 2005-01-21 20:06:21 UTC
Thanks for the patch.