From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Elliott Subject: Re: Access denied after write to named pipe Date: Tue, 18 Mar 2003 20:31:43 +0000 (GMT) Sender: linux-msdos-owner@vger.kernel.org Message-ID: References: Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: from "Marek Kriz" at Mar 17, 2003 08:51:12 List-Id: Content-Type: text/plain; charset="us-ascii" To: Marek Kriz Cc: linux-msdos@vger.kernel.org : : When I try create named pipe (to some directory which is 'visible' from : dosemu) in RDONLY mode, so after command : ECHO HELLO > NAMED.PIP : I got error message Access denied. Where is the problem? Permissions of : pipe are 0777, umask is 000, run under user ROOT. I suspect that echo may be trying to open the pipe in Read+Write mode; I get the same effect with dosemu-1.0.1.0 and DRDOS 6. But if I write a C program to write to the pipe: #include #include #define O_WRONLY 1 int main(int argc, char **argv) { int n; int fd = open(argv[1], O_WRONLY); for (n = 2; n < argc; n++) { write(fd, argv[n], strlen(argv[n])); write(fd, " ", 1); } close(fd); return 0; } - then it works. ------------- http://www.seasip.demon.co.uk/index.html -------------------- John Elliott |BLOODNOK: "But why have you got such a long face?" |SEAGOON: "Heavy dentures, Sir!" - The Goon Show :-------------------------------------------------------------------------)