adduser produces garbage /etc/passwd
Running `adduser` in the official Alpine Linux 3.5 Docker container
results in a garbage `/etc/passwd` file:
```
$ docker run -ti alpine:3.5 /bin/sh
/ # addgroup -g 1000 xgroup
/ # adduser -u 1012 -G xgroup -h /home/user -D xuser
/ # grep xuser /etc/passwd
xuser:x:1012:1000:Linux User,,,:/home/user:,,,:/home/
/ # grep another /etc/passwd
another-user:x:1013:1000:Linux User,,,:/home/another:/sbin/halt
```
Note the shell part having the value `,,,:/home/`, and `/sbin/halt` in the second example, instead of a sensible default.
(from redmine: issue id 6742, created on 2017-01-25, closed on 2019-02-25)
- Relations:
- duplicates #5083 (closed)
- Changesets:
- Revision 4a3258e6 on 2019-01-12T11:44:45Z:
main/busybox: fix creation of invalid shell entry by adduser
Fixes #5083
Fixes #6742