Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753624AbdHXTZ4 (ORCPT ); Thu, 24 Aug 2017 15:25:56 -0400 Received: from mail-oi0-f67.google.com ([209.85.218.67]:34724 "EHLO mail-oi0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752842AbdHXTZz (ORCPT ); Thu, 24 Aug 2017 15:25:55 -0400 MIME-Version: 1.0 In-Reply-To: References: <20170816171211.4021-1-christian.brauner@ubuntu.com> <87pobvruzt.fsf@xmission.com> <87ziazqdfr.fsf@xmission.com> <20170824022436.44adb497@mir> <87378hhi3y.fsf@xmission.com> <87wp5tfynr.fsf@xmission.com> <20170824062432.1e05e6f8@mir> <874lsxezal.fsf@xmission.com> <87y3q8ermg.fsf@xmission.com> From: Linus Torvalds Date: Thu, 24 Aug 2017 12:25:54 -0700 X-Google-Sender-Auth: ukZJ0r_hyIPxHFVgUKx23tKC1ls Message-ID: Subject: Re: [PATCH 0/1] devpts: use dynamic_dname() to generate proc name To: Christian Brauner Cc: "Eric W. Biederman" , Al Viro , Serge Hallyn , Stefan Lippers-Hollmann , Christian Brauner , Thorsten Leemhuis , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 619 Lines: 19 On Thu, Aug 24, 2017 at 12:22 PM, Linus Torvalds 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