From owner-freebsd-stable@FreeBSD.ORG Mon Jul 21 05:11:25 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A0860106566B for ; Mon, 21 Jul 2008 05:11:25 +0000 (UTC) (envelope-from unga888@yahoo.com) Received: from web57004.mail.re3.yahoo.com (web57004.mail.re3.yahoo.com [66.196.97.108]) by mx1.freebsd.org (Postfix) with SMTP id 2CCAE8FC08 for ; Mon, 21 Jul 2008 05:11:24 +0000 (UTC) (envelope-from unga888@yahoo.com) Received: (qmail 95317 invoked by uid 60001); 21 Jul 2008 05:11:24 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-Mailer:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Message-ID; b=DtCLE29KD1JCHBCczi/Kb0muci6UEFgJ7IHUMk1699baaOWSkDUYD8XoXVewFc5NINWHlJRoLPBq1owz6joGDGHvBplm3q53P+00kuN9TzH5jgTS6W4WJ7UbBWCIs+cpgXHXAt2iEKcI9xW0p2jYhH1F4zzr15mpubROw1Vn+m4=; Received: from [220.255.7.209] by web57004.mail.re3.yahoo.com via HTTP; Sun, 20 Jul 2008 22:11:23 PDT X-Mailer: YahooMailWebService/0.7.218 Date: Sun, 20 Jul 2008 22:11:23 -0700 (PDT) From: Unga To: Peter Jeremy In-Reply-To: <20080720103711.GG24076@server.vk2pj.dyndns.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <223782.94918.qm@web57004.mail.re3.yahoo.com> Cc: freebsd-stable@freebsd.org Subject: Re: Pseudoterminals increase: compilation error [SOLVED] X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: unga888@yahoo.com List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Jul 2008 05:11:25 -0000 --- On Sun, 7/20/08, Peter Jeremy wrote: > From: Peter Jeremy > Subject: Re: Pseudoterminals increase: compilation error > To: "Unga" > Cc: freebsd-stable@freebsd.org > Date: Sunday, July 20, 2008, 6:37 PM > On 2008-Jul-19 19:44:18 -0700, Unga > wrote: > >truss -o truss.log -f expect -c "spawn ls" > > > > 1178: open("/dev/ptyp0",O_RDWR,027757763030) > ERR#5 'Input/output error' > > 1178: open("/dev/ptyp1",O_RDWR,027757763030) > ERR#5 'Input/output error' > > 1178: open("/dev/ptyp2",O_RDWR,027757763030) > = 5 (0x5) > > 1178: fstat(5,{mode=crw-rw-rw- > ,inode=178,size=0,blksize=4096}) = 0 (0x0) > > : > > : > > 1178: chown("/dev/ttyp2",1002,4) > ERR#1 'Operation not permitted' > > This is definitely wrong. expect should not be calling > chown(2), > it should be calling pt_chown. > Yep, it was pt_chown was missing. Fixed the issue. Now ttyp* are created with correct ownerships. A big thank specially to Peter Jeremy and all others who helped me to solve this. Best regards Unga