Date: Thu, 14 May 2020 20:30:26 +0000 From: "Poul-Henning Kamp" <phk@phk.freebsd.dk> To: Alan Somers <asomers@freebsd.org> Cc: "Julian H. Stacey" <jhs@berklix.com>, Kyle Evans <kevans@freebsd.org>, "freebsd-arch@freebsd.org" <freebsd-arch@freebsd.org>, "freebsd-hackers@freebsd.org" <hackers@freebsd.org> Subject: Re: [HEADSUP] Disallowing read() of a directory fd Message-ID: <33549.1589488226@critter.freebsd.dk> In-Reply-To: <CAOtMX2i2Z-KX=3rYR2nZ1g1Lb_tF==H3xPKcQMBxJs1Kqr-meQ@mail.gmail.com> References: <CACNAnaFszg%2BQWPRS0kghsnQMxXc%2B5niPTTNiUPSmK60YyBGCzA@mail.gmail.com> <202005142017.04EKH0aA093503@fire.js.berklix.net> <CAOtMX2i2Z-KX=3rYR2nZ1g1Lb_tF==H3xPKcQMBxJs1Kqr-meQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
-------- In message <CAOtMX2i2Z-KX=3D3rYR2nZ1g1Lb_tF=3D=3DH3xPKcQMBxJs1Kqr-meQ@mail= .gmail.com> , Alan Somers writes: >Really? When is that occasionally useful? I've never seen anything usef= ul >come out of reading a directory. Two things I have done over the years: Figure out which filenames prevent a enormous but sparse directory from being compacted. Figure out which control characters were in a filename. It might be a good idea to add a override flag on this feature, along the lines of: kern.geom.debugflags=3D0x10 -- = Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe = Never attribute to malice what can adequately be explained by incompetence= .
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?33549.1589488226>