--- a/lib/fts.c 2018-06-24 06:52:06.000000000 +0200 +++ a/lib/fts.c 2018-07-10 14:08:32.382614958 +0200 @@ -1551,7 +1551,7 @@ mem1: saved_er /* Store dirent.d_ino, in case we need to sort entries before processing them. */ - p->fts_statp->st_ino = D_INO (dp); + memcpy(&p->fts_statp->st_ino, &dp, sizeof(p->fts_statp->st_ino)); /* Build a file name for fts_stat to stat. */ if (ISSET(FTS_NOCHDIR)) {