Bugzilla – Bug 116127
fdisk returns wrong error code
Last modified: 2006-01-03 13:46:30 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 $?
Well, it lists the 0 partitions there is on this device, and that's it. Changing this behaviour might break existing scripts.