pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/libuuid devel/libuuid: fix illegal code affectin...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2a006549d3bb
branches:  trunk
changeset: 455767:2a006549d3bb
user:      dholland <dholland%pkgsrc.org@localhost>
date:      Sat Jul 10 23:11:22 2021 +0000

description:
devel/libuuid: fix illegal code affecting x11/mcookie.

Might affect PR 55086.

diffstat:

 devel/libuuid/distinfo                  |   3 ++-
 devel/libuuid/patches/patch-lib_pager.c |  23 +++++++++++++++++++++++
 2 files changed, 25 insertions(+), 1 deletions(-)

diffs (44 lines):

diff -r 6513ab27ef74 -r 2a006549d3bb devel/libuuid/distinfo
--- a/devel/libuuid/distinfo    Sat Jul 10 23:02:28 2021 +0000
+++ b/devel/libuuid/distinfo    Sat Jul 10 23:11:22 2021 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.21 2020/03/12 10:11:34 ryoon Exp $
+$NetBSD: distinfo,v 1.22 2021/07/10 23:11:22 dholland Exp $
 
 SHA1 (util-linux-2.32.1.tar.xz) = de9271fb93fb651d21c027e2efb0cf0ac80f2e9a
 RMD160 (util-linux-2.32.1.tar.xz) = bf61cb460eabcfdb90909dbcfd8e64bb9097ce65
@@ -10,6 +10,7 @@
 SHA1 (patch-include_c.h) = 4596369e4b742329be513952c66d1fa3705de017
 SHA1 (patch-include_ttyutils.h) = fa2b253d568e5aface99727c397d3c4c892b2c93
 SHA1 (patch-lib_ismounted.c) = 11f5148020dba2a22e1fbe4882fe423dfb11ad73
+SHA1 (patch-lib_pager.c) = 3d4b65f9ccb6437bcc0777634660b5ae3150d14e
 SHA1 (patch-lib_randutils.c) = 422e94d9bdaf6a77894b79d67285fd8a0cb1d05a
 SHA1 (patch-libblkid_docs_Makefile.in) = 97a1559dad77e32d78bd504d8d3523b9cc403c36
 SHA1 (patch-libfdisk_docs_Makefile.in) = def97b85e8760cd18af736ab331e2f476f0c9c67
diff -r 6513ab27ef74 -r 2a006549d3bb devel/libuuid/patches/patch-lib_pager.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/libuuid/patches/patch-lib_pager.c   Sat Jul 10 23:11:22 2021 +0000
@@ -0,0 +1,23 @@
+$NetBSD: patch-lib_pager.c,v 1.1 2021/07/10 23:11:22 dholland Exp $
+
+select's fd_set arguments are declared "restrict" so don't pass aliased
+pointers. note that nothing following actually _uses_ the data...
+
+--- lib/pager.c~       2018-06-04 07:57:02.793445882 +0000
++++ lib/pager.c
+@@ -141,11 +141,13 @@ static void pager_preexec(void)
+        * Work around bug in "less" by not starting it until we
+        * have real input
+        */
+-      fd_set in;
++      fd_set in, ex;
+ 
+       FD_ZERO(&in);
+       FD_SET(STDIN_FILENO, &in);
+-      select(1, &in, NULL, &in, NULL);
++      FD_ZERO(&ex);
++      FD_SET(STDIN_FILENO, &ex);
++      select(1, &in, NULL, &ex, NULL);
+ 
+       if (setenv("LESS", "FRSX", 0) != 0)
+               warn(_("failed to set the %s environment variable"), "LESS");



Home | Main Index | Thread Index | Old Index