Bug 62623 - Wrong redirection in mkinitrd could destroy file
Summary: Wrong redirection in mkinitrd could destroy file
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Raw Hide
Classification: Retired
Component: mkinitrd
Version: 1.0
Hardware: i386
OS: Linux
low
low
Target Milestone: ---
Assignee: Matt Wilson
QA Contact: David Lawrence
URL:
Whiteboard:
Depends On:
Blocks: 61590
TreeView+ depends on / blocked
 
Reported: 2002-04-03 06:47 UTC by vvs
Modified: 2005-10-31 22:00 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2002-04-05 03:45:12 UTC
Embargoed:


Attachments (Terms of Use)

Description vvs 2002-04-03 06:47:04 UTC
Description of Problem:

mkinitrd script contains redirections like >2 in several places, which could
destroy file with the same name in the current directory

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

mkinitrd-3.3.6-1

How Reproducible:

Always

Steps to Reproduce:
1. run mkinitrd
2. look for file with name 2 in the current directory
3. 

Actual Results:

File with name 2 was created

Expected Results:

This file should not be created

Additional Information:
	
It should be >&2 instead. I suppose you have already found that, but just in
case.

Comment 1 Jeremy Katz 2002-04-05 03:45:07 UTC
Fixed in mkinitrd-3.3.7-1 and newer


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