Re: [PATCH 0/1] devpts: use dynamic_dname() to generate proc name

Linus Torvalds
2017-08-24T19:25:56Z

On Thu, Aug 24, 2017 at 12:22 PM, Linus Torvalds
<torvalds@linux-foundation.org> wrote:
> [root@i7 dummy]# ../a.out
> I point to "/home/torvalds/dummy/pts/0"

Note: that "a.out" binary is modified from your original code.

It's modified to correctly print out the readdir() results, but it's
also modified to open just "ptmx" for the above trial (so it doesn't
open /dev/ptmx, it's opening that ptmx node in the current directory,
which is why it then reports that

I point to "/home/torvalds/dummy/pts/0"

thing.

So it's not your *original* test-program, it's slightly tweaked for this test.

Linus