forked from mirrors/nixpkgs
parent
84adcc2241
commit
4718d430cc
|
@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "0szbqa12zqzldqyw97lxqax3ja2adis83i7brdfsxmrfw68iaf65";
|
||||
};
|
||||
|
||||
patches = [ ./path-to-cat.patch ];
|
||||
patches = [ ./path-to-cat.patch ./no-gets.patch ];
|
||||
|
||||
buildInputs =
|
||||
[ gettext gdbm libtool pam readline ncurses
|
||||
|
|
14
pkgs/tools/networking/mailutils/no-gets.patch
Normal file
14
pkgs/tools/networking/mailutils/no-gets.patch
Normal file
|
@ -0,0 +1,14 @@
|
|||
--- a/lib/stdio.in.h
|
||||
+++ b/lib/stdio.in.h
|
||||
@@ -138,8 +138,10 @@
|
||||
/* It is very rare that the developer ever has full control of stdin,
|
||||
so any use of gets warrants an unconditional warning. Assume it is
|
||||
always declared, since it is required by C89. */
|
||||
-#undef gets
|
||||
+#ifdef gets
|
||||
+# undef gets
|
||||
_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
|
||||
+#endif
|
||||
|
||||
#if @GNULIB_FOPEN@
|
||||
# if @REPLACE_FOPEN@
|
Loading…
Reference in a new issue