Bug 14506 - "makedevs" returns "0" if a device_table file does not exist
Summary: "makedevs" returns "0" if a device_table file does not exist
Status: NEW
Alias: None
Product: Busybox
Classification: Unclassified
Component: Other (show other bugs)
Version: unspecified
Hardware: All Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-10 20:52 UTC by 4yg_4mm6p8ifiten
Modified: 2022-01-10 20:54 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

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