* Access denied after write to named pipe
@ 2003-03-17 7:51 Marek Kriz
0 siblings, 0 replies; 2+ messages in thread
From: Marek Kriz @ 2003-03-17 7:51 UTC (permalink / raw)
To: linux-msdos
Hi!
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.
Dosemu 1.1.4, Drdos 7.03
Thanks, bye, M
P.S. Reading from pipe is OK.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Access denied after write to named pipe
[not found] <no.id>
@ 2003-03-18 20:31 ` John Elliott
0 siblings, 0 replies; 2+ messages in thread
From: John Elliott @ 2003-03-18 20:31 UTC (permalink / raw)
To: Marek Kriz; +Cc: linux-msdos
:
: 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 <unixio.h>
#include <string.h>
#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
:-------------------------------------------------------------------------)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-03-18 20:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-17 7:51 Access denied after write to named pipe Marek Kriz
[not found] <no.id>
2003-03-18 20:31 ` John Elliott
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox