Bug 116127 - fdisk returns wrong error code
Summary: fdisk returns wrong error code
Status: VERIFIED WONTFIX
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: ConsoleApps (show other bugs)
Version: RC 1
Hardware: All SUSE Other
: P5 - None : Enhancement
Target Milestone: ---
Assignee: Mads Martin Joergensen
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 97395
  Show dependency treegraph
 
Reported: 2005-09-09 13:31 UTC by Marco Michna
Modified: 2006-01-03 13:46 UTC (History)
0 users

See Also:
Found By: Component Test
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.