Skip to content

Fix glob problem caused by changes to dirent

Ron Williams requested to merge rw_van/cookbook:bash-glob-fix into master

After a change to dirent in relibc, bash glob was noticing that d_ino was defined but zero, causing * to not match anything. Bash assumes that an inode number of 0 means that this is not a valid entry, but RedoxFS does not currently support the GETDENTS system call, so all entries have an inode number of 0. This patch turns on the bash config option BROKEN_DIRENT_D_INO so the inode number check is skipped.

It's not clear if this patch should be changed once Redox implements GETDENTS. It would require us to provide a non-zero inode number for anything we want bash glob to match.

All the other differences are just due to timestamps.

Edited by Ron Williams

Merge request reports