Bug 116127

Summary: fdisk returns wrong error code
Product: [openSUSE] SUSE LINUX 10.0 Reporter: Marco Michna <mmichna>
Component: ConsoleAppsAssignee: Mads Martin Joergensen <mmj>
Status: VERIFIED WONTFIX QA Contact: E-mail List <qa-bugs>
Severity: Enhancement    
Priority: P5 - None    
Version: RC 1   
Target Milestone: ---   
Hardware: All   
OS: SUSE Other   
Whiteboard:
Found By: Component Test Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Bug Depends on:    
Bug Blocks: 97395    

Description Marco Michna 2005-09-09 13:31:15 UTC
When you do an fdisk -l on an non existant device then it returns the wrong  
error code and does not give an error like "device does not exist".  
  
How to reproduce:  - pick a non existant device like eg /dev/hdz 
                   - do fdisk -l <device> && echo $?
Comment 1 Mads Martin Joergensen 2005-09-09 13:39:40 UTC
Well, it lists the 0 partitions there is on this device, and that's it. Changing
this behaviour might break existing scripts.