]> xenbits.xensource.com Git - freebsd.git/commit
Make pseudofs(9) create directory entries in order, instead
authortrasz <trasz@FreeBSD.org>
Sat, 14 Sep 2019 19:16:07 +0000 (19:16 +0000)
committertrasz <trasz@FreeBSD.org>
Sat, 14 Sep 2019 19:16:07 +0000 (19:16 +0000)
commitae2a352825bc6dd824d2a7e82cd946cf1b75a6fe
tree41c6c576b3b955d82e792e6e089fbc87776fe3de
parent77b82b9f0cfa8b7ff73de5f745453831853de46f
Make pseudofs(9) create directory entries in order, instead
of the reverse.

This fixes Linux sysctl(8) binary - it assumes the first two
directory entries are always "." and "..". There might be other
Linux apps affected by this.

NB it might be a good idea to rewrite it using queue(3).

Reviewed by: kib
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D21550
sys/fs/pseudofs/pseudofs.c
sys/fs/pseudofs/pseudofs.h