diff options
author | Andi Gutmans <andi@php.net> | 2000-11-02 23:08:07 +0000 |
---|---|---|
committer | Andi Gutmans <andi@php.net> | 2000-11-02 23:08:07 +0000 |
commit | d0ec3df2884f58b7d7defb2e6a43e6b060789805 (patch) | |
tree | 73593b33fce95e5c7bc734b7f29e6df82477dd72 /ext/posix | |
parent | e17df3a7bcfb6d408ae5db4ceff4b77c4efb9fe4 (diff) | |
download | php-git-d0ec3df2884f58b7d7defb2e6a43e6b060789805.tar.gz |
- Use CHECKUID_* #define's instead of cryptic numbers in php_checkuid()
- I did not test for validity of the actual php_checkuid() calls and there
- might be mistakes in the previous code.
Diffstat (limited to 'ext/posix')
-rw-r--r-- | ext/posix/posix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/posix/posix.c b/ext/posix/posix.c index 0eba167dab..537ad4bf23 100644 --- a/ext/posix/posix.c +++ b/ext/posix/posix.c @@ -665,7 +665,7 @@ PHP_FUNCTION(posix_mkfifo) convert_to_string(path); convert_to_long(mode); - if (PG(safe_mode) && (!php_checkuid(path->value.str.val, NULL, 3))) { + if (PG(safe_mode) && (!php_checkuid(path->value.str.val, NULL, CHECKUID_ALLOW_ONLY_DIR))) { RETURN_FALSE; } result = mkfifo(path->value.str.val, mode->value.lval); |