File vsftpd-append-seek-pipe.patch of Package vsftpd.16080

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");
   }
openSUSE Build Service is sponsored by