lftp: 4.6.1 -> 4.6.3a

This commit is contained in:
William A. Kennington III 2015-06-18 21:39:39 -07:00
parent 14792f12d6
commit 7aa425e541
2 changed files with 2 additions and 19 deletions

View file

@ -1,18 +1,16 @@
{ stdenv, fetchurl, gnutls, pkgconfig, readline, zlib }:
stdenv.mkDerivation rec {
name = "lftp-4.6.1";
name = "lftp-4.6.3a";
src = fetchurl {
urls = [
"http://lftp.yar.ru/ftp/${name}.tar.bz2"
"http://lftp.yar.ru/ftp/old/${name}.tar.bz2"
];
sha256 = "0w9nb24abqlnjzi30q8s0yv3h0zjxhynliyxwdgnrv0qag0k401s";
sha256 = "0846p1z5v997lxaqanj8n1qkv470s8nlhs420kiby67k4j2zl576";
};
patches = [ ./no-gets.patch ];
buildInputs = [ gnutls pkgconfig readline zlib ];
meta = with stdenv.lib; {

View file

@ -1,15 +0,0 @@
--- a/lib/stdio.in.h
+++ b/lib/stdio.in.h
@@ -702,10 +702,12 @@
/* It is very rare that the developer ever has full control of stdin,
so any use of gets warrants an unconditional warning; besides, C11
removed it. */
+#ifdef gets
#undef gets
#if HAVE_RAW_DECL_GETS
_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
#endif
+#endif
#if @GNULIB_OBSTACK_PRINTF@ || @GNULIB_OBSTACK_PRINTF_POSIX@