Environment: Ubuntu 20.04, main branch (git commit a3b7a08), GNU coreutils v8.30
Steps to reproduce:
sudo chroot --userspec=65534: / pwd
What happens now: uutils chroot fails with
chroot: invalid userspec: '65534:'
What I expected to happen: GNU chroot succeeds and prints
Notes: This is causing a failure in the GNU test file tests/chroot/chroot-credentials.sh.
The same issue occurs if you provide only the group ID, as in --userspec=:65534.