From owner-cvs-all Mon Dec 17 15:39:49 2001 Delivered-To: cvs-all@freebsd.org Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by hub.freebsd.org (Postfix) with ESMTP id CB74A37B422; Mon, 17 Dec 2001 15:39:21 -0800 (PST) Received: (from uucp@localhost) by srv1.cosmo-project.de (8.11.6/8.11.6) with UUCP id fBHNdAU42695; Tue, 18 Dec 2001 00:39:11 +0100 (CET) (envelope-from ticso@cicely9.cicely.de) Received: from mail.cicely.de (cicely20.cicely.de [10.1.1.22]) by cicely5.cicely.de (8.12.1/8.12.1) with ESMTP id fBHNdRtx060798; Tue, 18 Dec 2001 00:39:27 +0100 (CET)?g (envelope-from ticso@cicely9.cicely.de) Received: from cicely9.cicely.de (cicely9.cicely.de [10.1.7.11]) by mail.cicely.de (8.11.0/8.11.0) with ESMTP id fBHNdQW16762; Tue, 18 Dec 2001 00:39:26 +0100 (CET) Received: (from ticso@localhost) by cicely9.cicely.de (8.11.6/8.11.6) id fBHNdQx19507; Tue, 18 Dec 2001 00:39:26 +0100 (CET) (envelope-from ticso) Date: Tue, 18 Dec 2001 00:39:25 +0100 From: Bernd Walter To: Warner Losh Cc: Erik Trulsson , Steve Price , Andreas Klemm , cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: Re: cvs commit: ports/print/apsfilter Makefile ports/print/apsfilter/files patch-bin::aps2file ports/print/apsfilter/scripts pre-configure Message-ID: <20011217233925.GB18149@cicely9.cicely.de> References: <20011217201850.A21347@student.uu.se> <200112171847.fBHIlbP69769@freefall.freebsd.org> <20011217130555.J72144@bsd.havk.org> <200112172140.fBHLeDM79393@harmony.village.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200112172140.fBHLeDM79393@harmony.village.org> User-Agent: Mutt/1.3.24i X-Operating-System: FreeBSD cicely9.cicely.de 5.0-CURRENT alpha Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, Dec 17, 2001 at 02:40:13PM -0700, Warner Losh wrote: > In message <20011217201850.A21347@student.uu.se> Erik Trulsson writes: > : If you use tcsh or zsh (or presumably bash but I haven't tried that) this > : will indeed output "hello" to stdout. > : If you use /bin/sh it will instead complain that it cannot create > : /dev/stdout. > : > : This is probably a bug in /bin/sh > > csh works. But sh says: > $ echo hello > /dev/stdout > cannot create /dev/stdout: permission denied > $ ls -l /dev/stdout > crw-rw-rw- 1 root wheel 22, 1 Jun 18 2001 /dev/stdout Here is the ktrace Part: [...] 60779 sh RET sigaction 0 60779 sh CALL __getcwd(0xbfbff824,0x100) 60779 sh RET __getcwd 0 60779 sh CALL fcntl(0x1,0,0xa) 60779 sh RET fcntl 10/0xa 60779 sh CALL close(0x1) 60779 sh RET close 0 60779 sh CALL open(0x80ecf14,0x601,0x1b6) 60779 sh NAMI "/dev/stdout" 60779 sh RET open -1 errno 13 Permission denied 60779 sh CALL break(0x80f5000) 60779 sh RET break 0 60779 sh CALL write(0x2,0x80f4000,0x2d) 60779 sh GIO fd 2 wrote 45 bytes "cannot create /dev/stdout: permission denied " 60779 sh RET write 45/0x2d 60779 sh CALL exit(0x2) Flags to open are O_WRONLY | O_CREAT | O_TRUNC. With >> it's 0x209 = O_WRONLY | O_CREAT | O_APPEND. -- B.Walter COSMO-Project http://www.cosmo-project.de ticso@cicely.de Usergroup info@cosmo-project.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message