coreutils: fix logic.