Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Mon, 28 Jan 2019 12:37:30 +0000
From: Jorge Almeida <>
Subject: fdopendir (BUG?)

Calling fdopendir with a file descriptor obtained with O_PATH yields a
bad directory  stream descriptor (as it should, if I understood
correctly the documentation of open() re O_PATH). However, the call
doesn't fail (it should fail with EBADF). A subsequent call to readdir
(3) detects the error.

(the problem also occurs with glibc, besides the fact that glibc
requires also _GNU_SOURCE to compile, contradicting  the linux man

Am I  missing something? (Complete test program in attachement, so
that Gmail doesn't crap it.)


Jorge Almeida

View attachment "test.c" of type "text/x-csrc" (792 bytes)

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.