pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/security/putty putty: amend patch to use the BSD synta...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5473c72a265b
branches:  trunk
changeset: 359753:5473c72a265b
user:      maya <maya%pkgsrc.org@localhost>
date:      Fri Mar 17 11:55:53 2017 +0000

description:
putty: amend patch to use the BSD syntax on BSDs, and the alternate
syntax otherwise -- it has a better chance of working.

diffstat:

 security/putty/distinfo                    |   4 ++--
 security/putty/patches/patch-unix_uxpgnt.c |  11 +++++++----
 2 files changed, 9 insertions(+), 6 deletions(-)

diffs (47 lines):

diff -r 79a7a02cd3ef -r 5473c72a265b security/putty/distinfo
--- a/security/putty/distinfo   Fri Mar 17 11:13:40 2017 +0000
+++ b/security/putty/distinfo   Fri Mar 17 11:55:53 2017 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.21 2017/03/17 00:11:48 maya Exp $
+$NetBSD: distinfo,v 1.22 2017/03/17 11:55:53 maya Exp $
 
 SHA1 (putty-0.68.tar.gz) = e6acf0285e0718516cfa1fe775b1a92765387d70
 RMD160 (putty-0.68.tar.gz) = c5a07a3250f857cdcce619ef35953ed46c260788
@@ -10,6 +10,6 @@
 SHA1 (patch-unix_Makefile.gtk) = 399636a9b6d445fa0cdd55c7a887efa8f03bdc94
 SHA1 (patch-unix_gtkwin.c) = 110079a07a802f93705c6526a14069491f1c313e
 SHA1 (patch-unix_uxnet.c) = 2d1c2939721993fe5616c2fe3f1935c03a31bb35
-SHA1 (patch-unix_uxpgnt.c) = 2aa46f5ba17f436007d926abc529ee0cfb82ff52
+SHA1 (patch-unix_uxpgnt.c) = b5625b33b940ea2870d3e91d38e2303a80d6887b
 SHA1 (patch-unix_uxucs.c) = a2a5021b515c3bade1126ed062bdc1eece1ca0f9
 SHA1 (patch-windows_window.c) = e851bad963967429131286c18e39d1ac4add4ae7
diff -r 79a7a02cd3ef -r 5473c72a265b security/putty/patches/patch-unix_uxpgnt.c
--- a/security/putty/patches/patch-unix_uxpgnt.c        Fri Mar 17 11:13:40 2017 +0000
+++ b/security/putty/patches/patch-unix_uxpgnt.c        Fri Mar 17 11:55:53 2017 +0000
@@ -1,19 +1,22 @@
-$NetBSD: patch-unix_uxpgnt.c,v 1.1 2017/03/17 00:11:48 maya Exp $
+$NetBSD: patch-unix_uxpgnt.c,v 1.2 2017/03/17 11:55:53 maya Exp $
 
 BSD setpgrp has parameters. POSIX says it is undefined whether
 setpgrp(0,0) == setpgrp() and it should use setpgid.
 
-If this is a problem on glibc, it should support both based
-on defines.
+Use setpgid without parameters on non-BSD
 
 --- unix/uxpgnt.c.orig 2017-02-18 17:10:15.000000000 +0000
 +++ unix/uxpgnt.c
-@@ -270,7 +270,7 @@ void pageant_fork_and_print_env(int reta
+@@ -270,7 +270,11 @@ void pageant_fork_and_print_env(int reta
          /* Get out of our previous process group, to avoid being
           * blasted by passing signals. But keep our controlling tty,
           * so we can keep checking to see if we still have one. */
 -        setpgrp();
++#if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__) || defined(__OpenBSD__)
 +        setpgid(0, 0);
++#else
++        setpgid();
++#endif
      } else {
          /* Do that, but also leave our entire session and detach from
           * the controlling tty (if any). */



Home | Main Index | Thread Index | Old Index