0 is returned when there is nothing to do
Bug #1595148 reported by
Removed by request
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
binfmt-support (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
I'm using Ubuntu 16.10 dev with binfmt-support 2.1.6-1 and on trying to remove a non-existent entry from the database a warning is being displayed but 0 is returned like in this example:
root@ubuntu:~# update-binfmts --remove EXE /opt/wine-
update-binfmts: warning: /var/lib/
root@ubuntu:~# echo $?
0
Additionally trying to add an entry twice for example with "update-binfmts --install EXE /opt/wine-
Changed in binfmt-support (Ubuntu): | |
status: | Incomplete → New |
To post a comment you must log in.
I don't think this is a bug. The principle I'm following here is that you asked update-binfmts to put your system into a certain state (respectively, "no binary format EXE should be installed" and "the binary format EXE should be installed with this specification"), and your system was already in that state, so it had nothing to do. Emitting a warning is reasonable in case this indicates a bug in something higher-level, but it is not a failure and a non-zero exit code would be inappropriate.
Could you explain why the zero exit code causes a problem for you?