Bug 14506

Summary: "makedevs" returns "0" if a device_table file does not exist
Product: Busybox Reporter: 4yg_4mm6p8ifiten
Component: OtherAssignee: unassigned
Status: NEW ---    
Severity: normal CC: busybox-cvs
Priority: P5    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:

Description 4yg_4mm6p8ifiten 2022-01-10 20:52:43 UTC
BusyBox version v1.34.1, which could not be selected

"makedevs" returns "0" if it fails because a device_table file does not exist


return code should be >0:

$ makedevs -d /does/not/exist /tmp ; echo ret:$?
rootdir=/tmp
table='/does/not/exist'
makedevs: /does/not/exist: No such file or directory
ret:0


return code as expected >0:

$ makedevs -d /does/not/exist /does/not/exist ; echo ret:$?
makedevs: can't change directory to '/does/not/exist': No such file or directory
ret:1