Comment 11 for bug 2064926

Revision history for this message
Benjamin Drung (bdrung) wrote :

Scratch my last comment. My test should have called `busybox sh test` instead of `busybox test`.

The failing code is a bit later. need_hostname hits the last else part and calls false (after the "No old hostname" comment). The caller code in set_hostname:

```
 need_hostname || return
```

Distilled down `test` shell code:

```
#!/bin/sh
set -e

set_hostname()
{
    false || return
    echo "remaining"
}

set_hostname
```

```
$ busybox sh test; echo $?
1
$ sh test; echo $?
1
```