com php-src: fix group name handling: main/streams/plain_wrap per.c
| From: | Stanislav Malyshev | Date: | Sun, 01 Feb 2015 07:47:03 +0000 |
| Subject: | com php-src: fix group name handling: main/streams/plain_wrap per.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-84531@lists.php.net to get a copy of this message | ||
Commit: e5e251b02309d046680e9190cfc688fab4e5670e
Author: Stanislav Malyshev <stas@php.net> Sat, 31 Jan 2015 23:47:03 -0800
Parents: d82424b46f1023906135f87ae8112bcf932bca4e
Branches: PHP-5.5 PHP-5.6 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=e5e251b02309d046680e9190cfc688fab4e5670e
Log:
fix group name handling
Changed paths:
M main/streams/plain_wrapper.c
Diff:
diff --git a/main/streams/plain_wrapper.c b/main/streams/plain_wrapper.c
index 7a9a4e6..b674e98 100644
--- a/main/streams/plain_wrapper.c
+++ b/main/streams/plain_wrapper.c
@@ -1337,7 +1337,7 @@ static int php_plain_files_metadata(php_stream_wrapper *wrapper, char *url,
int
break;
case PHP_STREAM_META_GROUP:
case PHP_STREAM_META_GROUP_NAME:
- if(option == PHP_STREAM_META_OWNER_NAME) {
+ if(option == PHP_STREAM_META_GROUP_NAME) {
if(php_get_gid_by_name((char *)value, &gid TSRMLS_CC) != SUCCESS) {
php_error_docref1(NULL TSRMLS_CC, url, E_WARNING, "Unable to find gid for %s", (char
*)value);
return 0;