Bug 9676 - modprobe returns code is 0 on some errors, and 255 if it's alright
Summary: modprobe returns code is 0 on some errors, and 255 if it's alright
Status: RESOLVED FIXED
Alias: None
Product: Busybox
Classification: Unclassified
Component: Standard Compliance (show other bugs)
Version: unspecified
Hardware: All Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-27 15:35 UTC by yanosz
Modified: 2017-04-06 11:46 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 yanosz 2017-02-27 15:35:18 UTC
System: Lede Linux 17.01.0
Busybox: 1.26.2

Is:
Loading non-existing modules is success:
root@LEDE:~# modprobe non-existing-module; echo $?
failed to find a module named non-existing-module
0
Loading existing modules is fail.
root@LEDE:~# modprobe nls_base; echo $?
nls_base is already loaded
255

Expected:
- Loading non-existing modules is fail
- Loading existing modules is success, unless --first-time is specified
Comment 1 Denys Vlasenko 2017-04-06 11:46:51 UTC
fixed in git, thanks.