Re: [PATCH 0/1] devpts: use dynamic_dname() to generate proc name
From: Linus Torvalds
Date: Thu Aug 24 2017 - 15:26:01 EST
On Thu, Aug 24, 2017 at 12:22 PM, Linus Torvalds
<torvalds@xxxxxxxxxxxxxxxxxxxx> 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