SHA256
1
0
forked from pool/vsftpd

Add "vsftpd-append-seek-pipe.patch" to allow the FTP server to append to a file system pipe. [bsc#1048427]

OBS-URL: https://build.opensuse.org/package/show/network/vsftpd?expand=0&rev=117
This commit is contained in:
Peter Simons 2017-09-07 14:51:06 +00:00 committed by Git OBS Bridge
parent eb840b0f5c
commit ce43389ac4
3 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,14 @@
Index: vsftpd-3.0.2/sysutil.c
===================================================================
--- vsftpd-3.0.2.orig/sysutil.c
+++ vsftpd-3.0.2/sysutil.c
@@ -490,7 +490,8 @@ vsf_sysutil_lseek_end(const int fd)
{
filesize_t retval;
retval = lseek(fd, 0, SEEK_END);
- if (retval < 0)
+ /* Ignore ESPIPE to allow append to fifos */
+ if (retval < 0 && errno != ESPIPE)
{
die("lseek");
}

View File

@ -13,6 +13,9 @@ Thu Sep 7 12:24:26 UTC 2017 - tchvatal@suse.com
any time zone other than UTC directly violates RFC3659 and leads
FTP clients to misinterpret the file's time stamp. [bsc#1024961]
- Add "vsftpd-append-seek-pipe.patch" to allow the FTP server to
append to a file system pipe. [bsc#1048427]
-------------------------------------------------------------------
Wed Jun 14 11:42:26 UTC 2017 - tchvatal@suse.com

View File

@ -74,6 +74,7 @@ Patch25: vsftpd-3.0.2-fix-chown-uploads.patch
Patch26: vsftpd-3.0.3-build-with-openssl-1.1.patch
Patch27: vsftpd-mdtm-in-utc.patch
Patch28: vsftpd-die-with-session.patch
Patch29: vsftpd-append-seek-pipe.patch
BuildRequires: libcap-devel
BuildRequires: libopenssl-devel
BuildRequires: pam-devel
@ -130,6 +131,7 @@ tests.
%patch26 -p1
%patch27 -p1
%patch28 -p1
%patch29 -p1
%build
%define seccomp_opts -D_GNU_SOURCE -DUSE_SECCOMP