Public bug reported:

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-devel/bin/wine
update-binfmts: warning: /var/lib/binfmts/EXE does not exist; nothing to do!
root@ubuntu:~# echo $?
0


Additionally trying to add an entry twice for example with "update-binfmts 
--install EXE /opt/wine-devel/bin/wine --magic MZ" does not result in a warning 
that the entry already exists and 0 is returned too.

** Affects: binfmt-support (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1595148

Title:
  0 is returned on failure

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/binfmt-support/+bug/1595148/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to