[PATCH] cmd: make string/error code more robust against errno leaking
authorMichael Vogt <mvo@ubuntu.com>
Fri, 15 Jan 2021 19:59:53 +0000 (20:59 +0100)
committerMichael Vogt <michael.vogt@ubuntu.com>
Fri, 22 Jan 2021 09:13:11 +0000 (09:13 +0000)
commite7f31c0a96653f22fda9e6c3cdb706579f6a72c0
treeb6bfe5bede915d22e73a28dc52e62f7973b494b3
parentfaa8ee2edb3a71390547b50e36264709bb241dcd
[PATCH] cmd: make string/error code more robust against errno leaking

The i386 sid sbuild fails because apparently some sbuild code
is calling functions that are not implemented so errno is set
during the tests when it is not expected. This leads to test
failures because the die() code will append errno status if
errno is set. This commit fixes this and makes the nightly
test also run on i386.

Gbp-Pq: Name 0012-cherry-pick-pr9844
cmd/libsnap-confine-private/error.c
cmd/libsnap-confine-private/string-utils.c
tests/nightly/sbuild/task.yaml