Bug #16771 Updated: posix_mkfifo does weird stuff with mode
| From: | sean at caedmon dot net | Date: | Tue, 23 Apr 2002 22:01:13 +0000 |
| Subject: | Bug #16771 Updated: posix_mkfifo does weird stuff with mode | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-5727@lists.php.net to get a copy of this message | ||
ID: 16771
Updated by: sean@caedmon.net
Reported By: sean@caedmon.net
Status: Open
Bug Type: POSIX related
Operating System: Linux 2.2.x (Debian)
PHP Version: 4.0CVS-2002-04-23
New Comment:
Partially true (I tried it without the quotes before I updated from cvs
today):
posix_mkfifo('./FORK_FIFO', 666);
now gives:
prw-r--r-- 1 sean sean 0 Apr 23 18:00 FORK_FIFO
better, but still not correct.
S
Previous Comments:
------------------------------------------------------------------------
[2002-04-23 17:58:03] jr-php@quo.to
This is a usage error. You need to remove the quotes from around 0666.
------------------------------------------------------------------------
[2002-04-23 17:47:49] sean@caedmon.net
posix_mkfifo('./FORK_FIFO', '0666'); // read&write by everyone
yeilds:
p-w---x--T 1 sean sean 0 Apr 23 17:47 FORK_FIFO
?
it SHOULD yeild:
prw-rw-rw-
The only way for me to get rw, it seems, is with '900', which gives:
prw----r-T 1 sean sean 0 Apr 23 17:48 FORK_FIFO
(note: I don't even know what T is..)
It's messed up, to say the least.
S
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=16771&edit=1