path to fix crash with sftp/wordpress (https://bugs.launchpad.net/ubuntu/+source/php-ssh2/+bug/1407377) [release 0.12-2mamba;Sat Feb 21 2015]
This commit is contained in:
parent
1a0547864c
commit
ca77aee2fa
18
php-ssh2-0.12-fix_crash_sftp_wordpress.patch
Normal file
18
php-ssh2-0.12-fix_crash_sftp_wordpress.patch
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
diff -Nru ssh2-0.12.orig/ssh2_fopen_wrappers.c ssh2-0.12/ssh2_fopen_wrappers.c
|
||||||
|
--- ssh2-0.12.orig/ssh2_fopen_wrappers.c 2012-10-02 22:18:07.000000000 +0200
|
||||||
|
+++ ssh2-0.12/ssh2_fopen_wrappers.c 2015-02-21 19:06:32.274837384 +0100
|
||||||
|
@@ -218,14 +218,6 @@
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
- /*
|
||||||
|
- Find resource->path in the path string, then copy the entire string from the original path.
|
||||||
|
- This includes ?query#fragment in the path string
|
||||||
|
- */
|
||||||
|
- s = resource->path;
|
||||||
|
- resource->path = estrdup(strstr(path, resource->path));
|
||||||
|
- efree(s);
|
||||||
|
-
|
||||||
|
/* Look for a resource ID to reuse a session */
|
||||||
|
s = resource->host;
|
||||||
|
if (strncmp(resource->host, "Resource id #", sizeof("Resource id #") - 1) == 0) {
|
@ -1,14 +1,15 @@
|
|||||||
%define php_majver %(php-config --version | cut -d. -f1-2)
|
%define php_majver %(php-config --version | cut -d. -f1-2)
|
||||||
Name: php-ssh2
|
Name: php-ssh2
|
||||||
Version: 0.12
|
Version: 0.12
|
||||||
Release: 1mamba
|
Release: 2mamba
|
||||||
Summary: PHP bindings for the libssh2 library
|
Summary: PHP bindings for the libssh2 library
|
||||||
Group: Applications/Web
|
Group: Applications/Web
|
||||||
Vendor: openmamba
|
Vendor: openmamba
|
||||||
Distribution: openmamba
|
Distribution: openmamba
|
||||||
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||||
URL: http://http://pecl.php.net/package/ssh2
|
URL: http://pecl.php.net/package/ssh2
|
||||||
Source: http://pecl.php.net/get/ssh2-%{version}.tgz
|
Source: http://pecl.php.net/get/ssh2-%{version}.tgz
|
||||||
|
Patch0: php-ssh2-0.12-fix_crash_sftp_wordpress.patch
|
||||||
License: PHP License
|
License: PHP License
|
||||||
## AUTOBUILDREQ-BEGIN
|
## AUTOBUILDREQ-BEGIN
|
||||||
BuildRequires: glibc-devel
|
BuildRequires: glibc-devel
|
||||||
@ -27,6 +28,8 @@ PHP bindings for the libssh2 library.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -c %{name}-%{version}
|
%setup -q -c %{name}-%{version}
|
||||||
|
cd ssh2-%{version}
|
||||||
|
%patch0 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
cd ssh2-%{version}
|
cd ssh2-%{version}
|
||||||
@ -67,5 +70,8 @@ fi
|
|||||||
%doc ssh2-%{version}/LICENSE
|
%doc ssh2-%{version}/LICENSE
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Feb 21 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 0.12-2mamba
|
||||||
|
- path to fix crash with sftp/wordpress (https://bugs.launchpad.net/ubuntu/+source/php-ssh2/+bug/1407377)
|
||||||
|
|
||||||
* Fri Jan 30 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 0.12-1mamba
|
* Fri Jan 30 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 0.12-1mamba
|
||||||
- package created using the webbuild interface
|
- package created using the webbuild interface
|
||||||
|
Loading…
Reference in New Issue
Block a user