[Sudoscript-devel] OpenBSD Problem Solved
Brought to you by:
hbo
From: Howard O. <hb...@eg...> - 2002-06-02 19:50:48
|
It was a hangover from the 1.x code in which I opened the singular FIFO for read/write. This is an error in Solaris and OpenBSD. If it's also an error in POSIX 1, then it's probably also an error in Linux. The Linux and FreeBSD man pages for mkfifo(2) and open(2) don't mention a O_RDWR restriction on FIFOs. OpenBSD does have such a restriction, and returned an error when an attempt was made to open a fifo for read/write. Solaris open(2) mentions the restriction, but the OS doesn't complain when you actually open a FIFO this way. In any case, the 2.0 architecture doesn't require two-way I/O on any of the FIFOs, so getting rid of the O_RDWR mode on the front-end FIFO in sudoshell and sudoscriptd fixes the problem for all platforms. The code change is in CVS. I'm not going to cut another alpha release for this. I'll roll it in to the first beta on Wednesday instead. Howard Owen "Even if you are on the right EGBOK Consultants track, you'll get run over if you hb...@eg... +1-650-339-5733 just sit there." - Will Rogers |