Hello, The test for regular file is wrong.
Goodbye. diff --git a/usr.bin/audio/play/play.c b/usr.bin/audio/play/play.c index 945f834d4e70..d6371bd6323d 100644 --- a/usr.bin/audio/play/play.c +++ b/usr.bin/audio/play/play.c @@ -248,7 +248,7 @@ play(char *file) * or if we failed to mmap the file, try to read it instead, so * that filesystems, etc, that do not support mmap() work */ - if (S_ISREG(sb.st_rdev & S_IFMT) == 0 || + if (!S_ISREG(sb.st_mode) || ((off_t)sizet_filesize != filesize) || (oaddr = addr = mmap(0, sizet_filesize, PROT_READ, MAP_SHARED, fd, 0)) == MAP_FAILED) {