[Bug 14506] New: "makesave" returns "0" if a device_table file does not exist

bugzilla at busybox.net bugzilla at busybox.net
Mon Jan 10 20:52:43 UTC 2022


https://bugs.busybox.net/show_bug.cgi?id=14506

            Bug ID: 14506
           Summary: "makesave" returns "0" if a device_table file does not
                    exist
           Product: Busybox
           Version: unspecified
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Other
          Assignee: unassigned at busybox.net
          Reporter: 4yg_4mm6p8ifiten at byom.de
                CC: busybox-cvs at busybox.net
  Target Milestone: ---

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

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the busybox-cvs mailing list