<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[139441] trunk/dports/sysutils/screen</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="https://trac.macports.org/changeset/139441">139441</a></dd>
<dt>Author</dt> <dd>ionic@macports.org</dd>
<dt>Date</dt> <dd>2015-08-17 11:47:47 -0700 (Mon, 17 Aug 2015)</dd>
</dl>

<h3>Log Message</h3>
<pre>screen: rename patchfiles to patch-foo.diff.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkdportssysutilsscreenPortfile">trunk/dports/sysutils/screen/Portfile</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#trunkdportssysutilsscreenfilespatchconfighindiff">trunk/dports/sysutils/screen/files/patch-config.h.in.diff</a></li>
<li><a href="#trunkdportssysutilsscreenfilespatchconfigurediff">trunk/dports/sysutils/screen/files/patch-configure.diff</a></li>
<li><a href="#trunkdportssysutilsscreenfilespatchmaxargsdiff">trunk/dports/sysutils/screen/files/patch-maxargs.diff</a></li>
<li><a href="#trunkdportssysutilsscreenfilespatchptycdiff">trunk/dports/sysutils/screen/files/patch-pty.c.diff</a></li>
<li><a href="#trunkdportssysutilsscreenfilespatchscreencleoparddiff">trunk/dports/sysutils/screen/files/patch-screen.c-leopard.diff</a></li>
<li><a href="#trunkdportssysutilsscreenfilespatchscreencdiff">trunk/dports/sysutils/screen/files/patch-screen.c.diff</a></li>
<li><a href="#trunkdportssysutilsscreenfilespatchwindowcdiff">trunk/dports/sysutils/screen/files/patch-window.c.diff</a></li>
</ul>

<h3>Removed Paths</h3>
<ul>
<li><a href="#trunkdportssysutilsscreenfilespatchconfighin">trunk/dports/sysutils/screen/files/patch-config.h.in</a></li>
<li><a href="#trunkdportssysutilsscreenfilespatchconfigure">trunk/dports/sysutils/screen/files/patch-configure</a></li>
<li><a href="#trunkdportssysutilsscreenfilespatchmaxargs">trunk/dports/sysutils/screen/files/patch-maxargs</a></li>
<li><a href="#trunkdportssysutilsscreenfilespatchptyc">trunk/dports/sysutils/screen/files/patch-pty.c</a></li>
<li><a href="#trunkdportssysutilsscreenfilespatchscreenc">trunk/dports/sysutils/screen/files/patch-screen.c</a></li>
<li><a href="#trunkdportssysutilsscreenfilespatchscreencleopard">trunk/dports/sysutils/screen/files/patch-screen.c-leopard</a></li>
<li><a href="#trunkdportssysutilsscreenfilespatchwindowc">trunk/dports/sysutils/screen/files/patch-window.c</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkdportssysutilsscreenPortfile"></a>
<div class="modfile"><h4>Modified: trunk/dports/sysutils/screen/Portfile (139440 => 139441)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/sysutils/screen/Portfile        2015-08-17 18:47:34 UTC (rev 139440)
+++ trunk/dports/sysutils/screen/Portfile        2015-08-17 18:47:47 UTC (rev 139441)
</span><span class="lines">@@ -76,7 +76,7 @@
</span><span class="cx">     post-extract {
</span><span class="cx">         file copy ${distpath}/vproc_priv.h ${worksrcpath}
</span><span class="cx">     }
</span><del>-    patchfiles-append   patch-config.h.in patch-configure patch-window.c patch-screen.c-leopard
</del><ins>+    patchfiles-append   patch-config.h.in.diff patch-configure.diff patch-window.c.diff patch-screen.c-leopard.diff
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> if {${os.platform} eq &quot;darwin&quot; &amp;&amp; ${os.major} &gt;= 10 &amp;&amp; ${os.major} &lt;= 13} {
</span><span class="lines">@@ -87,7 +87,7 @@
</span><span class="cx">     post-extract {
</span><span class="cx">         file copy ${distpath}/vproc_priv.h ${worksrcpath}
</span><span class="cx">     }
</span><del>-    patchfiles-append   patch-config.h.in patch-configure patch-window.c patch-screen.c
</del><ins>+    patchfiles-append   patch-config.h.in.diff patch-configure.diff patch-window.c.diff patch-screen.c.diff
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> notes &quot;
</span></span></pre></div>
<a id="trunkdportssysutilsscreenfilespatchconfighin"></a>
<div class="delfile"><h4>Deleted: trunk/dports/sysutils/screen/files/patch-config.h.in (139440 => 139441)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/sysutils/screen/files/patch-config.h.in        2015-08-17 18:47:34 UTC (rev 139440)
+++ trunk/dports/sysutils/screen/files/patch-config.h.in        2015-08-17 18:47:47 UTC (rev 139441)
</span><span class="lines">@@ -1,28 +0,0 @@
</span><del>---- config.h.in        2014-04-26 12:58:46.000000000 +0200
-+++ config.h.in        2014-05-01 21:36:54.000000000 +0200
-@@ -192,14 +192,14 @@
-  * If screen is installed with permissions to update /etc/utmp (such
-  * as if it is installed set-uid root), define UTMPOK.
-  */
--#define UTMPOK
-+#undef UTMPOK

- /* Set LOGINDEFAULT to one (1)
-  * if you want entries added to /etc/utmp by default, else set it to
-  * zero (0).
-  * LOGINDEFAULT will be one (1) whenever LOGOUTOK is undefined!
-  */
--#define LOGINDEFAULT        1
-+#undef LOGINDEFAULT

- /* Set LOGOUTOK to one (1)
-  * if you want the user to be able to log her/his windows out.
-@@ -215,7 +215,7 @@
-  * Set CAREFULUTMP to one (1) if you want that users have at least one
-  * window per screen session logged in.
-  */
--#define LOGOUTOK 1
-+#undef LOGOUTOK
- #undef CAREFULUTMP


</del></span></pre></div>
<a id="trunkdportssysutilsscreenfilespatchconfighindifffromrev139440trunkdportssysutilsscreenfilespatchconfighin"></a>
<div class="copfile"><h4>Copied: trunk/dports/sysutils/screen/files/patch-config.h.in.diff (from rev 139440, trunk/dports/sysutils/screen/files/patch-config.h.in) (0 => 139441)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/sysutils/screen/files/patch-config.h.in.diff                                (rev 0)
+++ trunk/dports/sysutils/screen/files/patch-config.h.in.diff        2015-08-17 18:47:47 UTC (rev 139441)
</span><span class="lines">@@ -0,0 +1,28 @@
</span><ins>+--- config.h.in        2014-04-26 12:58:46.000000000 +0200
++++ config.h.in        2014-05-01 21:36:54.000000000 +0200
+@@ -192,14 +192,14 @@
+  * If screen is installed with permissions to update /etc/utmp (such
+  * as if it is installed set-uid root), define UTMPOK.
+  */
+-#define UTMPOK
++#undef UTMPOK

+ /* Set LOGINDEFAULT to one (1)
+  * if you want entries added to /etc/utmp by default, else set it to
+  * zero (0).
+  * LOGINDEFAULT will be one (1) whenever LOGOUTOK is undefined!
+  */
+-#define LOGINDEFAULT        1
++#undef LOGINDEFAULT

+ /* Set LOGOUTOK to one (1)
+  * if you want the user to be able to log her/his windows out.
+@@ -215,7 +215,7 @@
+  * Set CAREFULUTMP to one (1) if you want that users have at least one
+  * window per screen session logged in.
+  */
+-#define LOGOUTOK 1
++#undef LOGOUTOK
+ #undef CAREFULUTMP


</ins></span></pre></div>
<a id="trunkdportssysutilsscreenfilespatchconfigure"></a>
<div class="delfile"><h4>Deleted: trunk/dports/sysutils/screen/files/patch-configure (139440 => 139441)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/sysutils/screen/files/patch-configure        2015-08-17 18:47:34 UTC (rev 139440)
+++ trunk/dports/sysutils/screen/files/patch-configure        2015-08-17 18:47:47 UTC (rev 139441)
</span><span class="lines">@@ -1,22 +0,0 @@
</span><del>---- configure        2014-04-26 12:58:46.000000000 +0200
-+++ configure        2014-05-01 21:36:54.000000000 +0200
-@@ -5413,7 +5413,7 @@

- #include &lt;time.h&gt; /* to get time_t on SCO */
- #include &lt;sys/types.h&gt;
--#if defined(SVR4) &amp;&amp; !defined(DGUX)
-+#if (defined(SVR4) || defined(__APPLE__)) &amp;&amp; !defined(DGUX)
- #include &lt;utmpx.h&gt;
- #define utmp utmpx
- #else
-@@ -5422,6 +5422,10 @@
- #ifdef __hpux
- #define pututline _pututline
- #endif
-+#ifdef __APPLE__
-+#define pututline pututxline
-+#define getutent getutxent
-+#endif

- int
- main ()
</del></span></pre></div>
<a id="trunkdportssysutilsscreenfilespatchconfiguredifffromrev139440trunkdportssysutilsscreenfilespatchconfigure"></a>
<div class="copfile"><h4>Copied: trunk/dports/sysutils/screen/files/patch-configure.diff (from rev 139440, trunk/dports/sysutils/screen/files/patch-configure) (0 => 139441)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/sysutils/screen/files/patch-configure.diff                                (rev 0)
+++ trunk/dports/sysutils/screen/files/patch-configure.diff        2015-08-17 18:47:47 UTC (rev 139441)
</span><span class="lines">@@ -0,0 +1,22 @@
</span><ins>+--- configure        2014-04-26 12:58:46.000000000 +0200
++++ configure        2014-05-01 21:36:54.000000000 +0200
+@@ -5413,7 +5413,7 @@

+ #include &lt;time.h&gt; /* to get time_t on SCO */
+ #include &lt;sys/types.h&gt;
+-#if defined(SVR4) &amp;&amp; !defined(DGUX)
++#if (defined(SVR4) || defined(__APPLE__)) &amp;&amp; !defined(DGUX)
+ #include &lt;utmpx.h&gt;
+ #define utmp utmpx
+ #else
+@@ -5422,6 +5422,10 @@
+ #ifdef __hpux
+ #define pututline _pututline
+ #endif
++#ifdef __APPLE__
++#define pututline pututxline
++#define getutent getutxent
++#endif

+ int
+ main ()
</ins></span></pre></div>
<a id="trunkdportssysutilsscreenfilespatchmaxargs"></a>
<div class="delfile"><h4>Deleted: trunk/dports/sysutils/screen/files/patch-maxargs (139440 => 139441)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/sysutils/screen/files/patch-maxargs        2015-08-17 18:47:34 UTC (rev 139440)
+++ trunk/dports/sysutils/screen/files/patch-maxargs        2015-08-17 18:47:47 UTC (rev 139441)
</span><span class="lines">@@ -1,11 +0,0 @@
</span><del>---- ansi.c.orig        2014-05-01 12:51:14.000000000 +0200
-+++ ansi.c        2014-05-01 21:33:29.000000000 +0200
-@@ -568,7 +568,7 @@
-                 {
-                 case '0': case '1': case '2': case '3': case '4':
-                 case '5': case '6': case '7': case '8': case '9':
--                  if (curr-&gt;w_NumArgs &lt; MAXARGS)
-+                  if (curr-&gt;w_NumArgs &gt;= 0 &amp;&amp; curr-&gt;w_NumArgs &lt; MAXARGS)
-                     {
-                       if (curr-&gt;w_args[curr-&gt;w_NumArgs] &lt; 100000000)
-                         curr-&gt;w_args[curr-&gt;w_NumArgs] =
</del></span></pre></div>
<a id="trunkdportssysutilsscreenfilespatchmaxargsdifffromrev139440trunkdportssysutilsscreenfilespatchmaxargs"></a>
<div class="copfile"><h4>Copied: trunk/dports/sysutils/screen/files/patch-maxargs.diff (from rev 139440, trunk/dports/sysutils/screen/files/patch-maxargs) (0 => 139441)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/sysutils/screen/files/patch-maxargs.diff                                (rev 0)
+++ trunk/dports/sysutils/screen/files/patch-maxargs.diff        2015-08-17 18:47:47 UTC (rev 139441)
</span><span class="lines">@@ -0,0 +1,11 @@
</span><ins>+--- ansi.c.orig        2014-05-01 12:51:14.000000000 +0200
++++ ansi.c        2014-05-01 21:33:29.000000000 +0200
+@@ -568,7 +568,7 @@
+                 {
+                 case '0': case '1': case '2': case '3': case '4':
+                 case '5': case '6': case '7': case '8': case '9':
+-                  if (curr-&gt;w_NumArgs &lt; MAXARGS)
++                  if (curr-&gt;w_NumArgs &gt;= 0 &amp;&amp; curr-&gt;w_NumArgs &lt; MAXARGS)
+                     {
+                       if (curr-&gt;w_args[curr-&gt;w_NumArgs] &lt; 100000000)
+                         curr-&gt;w_args[curr-&gt;w_NumArgs] =
</ins></span></pre></div>
<a id="trunkdportssysutilsscreenfilespatchptyc"></a>
<div class="delfile"><h4>Deleted: trunk/dports/sysutils/screen/files/patch-pty.c (139440 => 139441)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/sysutils/screen/files/patch-pty.c        2015-08-17 18:47:34 UTC (rev 139440)
+++ trunk/dports/sysutils/screen/files/patch-pty.c        2015-08-17 18:47:47 UTC (rev 139441)
</span><span class="lines">@@ -1,11 +0,0 @@
</span><del>---- ./pty.c.orig        2003-09-08 16:26:18.000000000 +0200
-+++ ./pty.c        2007-10-28 16:27:56.000000000 +0100
-@@ -34,7 +34,7 @@
- #endif

- /* for solaris 2.1, Unixware (SVR4.2) and possibly others */
--#ifdef HAVE_SVR4_PTYS
-+#if defined(HAVE_SVR4_PTYS) &amp;&amp; !defined(__APPLE__)
- # include &lt;sys/stropts.h&gt;
- #endif

</del></span></pre></div>
<a id="trunkdportssysutilsscreenfilespatchptycdifffromrev139440trunkdportssysutilsscreenfilespatchptyc"></a>
<div class="copfile"><h4>Copied: trunk/dports/sysutils/screen/files/patch-pty.c.diff (from rev 139440, trunk/dports/sysutils/screen/files/patch-pty.c) (0 => 139441)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/sysutils/screen/files/patch-pty.c.diff                                (rev 0)
+++ trunk/dports/sysutils/screen/files/patch-pty.c.diff        2015-08-17 18:47:47 UTC (rev 139441)
</span><span class="lines">@@ -0,0 +1,11 @@
</span><ins>+--- ./pty.c.orig        2003-09-08 16:26:18.000000000 +0200
++++ ./pty.c        2007-10-28 16:27:56.000000000 +0100
+@@ -34,7 +34,7 @@
+ #endif

+ /* for solaris 2.1, Unixware (SVR4.2) and possibly others */
+-#ifdef HAVE_SVR4_PTYS
++#if defined(HAVE_SVR4_PTYS) &amp;&amp; !defined(__APPLE__)
+ # include &lt;sys/stropts.h&gt;
+ #endif

</ins></span></pre></div>
<a id="trunkdportssysutilsscreenfilespatchscreenc"></a>
<div class="delfile"><h4>Deleted: trunk/dports/sysutils/screen/files/patch-screen.c (139440 => 139441)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/sysutils/screen/files/patch-screen.c        2015-08-17 18:47:34 UTC (rev 139440)
+++ trunk/dports/sysutils/screen/files/patch-screen.c        2015-08-17 18:47:47 UTC (rev 139441)
</span><span class="lines">@@ -1,43 +0,0 @@
</span><del>---- screen.c        2014-04-26 18:22:09.000000000 +0200
-+++ screen.c        2014-05-01 21:36:54.000000000 +0200
-@@ -109,6 +109,11 @@

- #include &quot;logfile.h&quot;        /* islogfile, logfflush */

-+#ifdef __APPLE__
-+#include &lt;vproc.h&gt;
-+#include &lt;vproc_priv.h&gt;
-+#endif
-+
- #ifdef DEBUG
- FILE *dfp;
- #endif
-@@ -1046,6 +1051,16 @@
-         Panic(0, &quot;No $SCREENDIR with multi screens, please.&quot;);
- #endif
-     }
-+#ifdef __APPLE__
-+    else if (!multi &amp;&amp; real_uid == eff_uid) {
-+      static char DarwinSockDir[PATH_MAX];
-+      if (confstr(_CS_DARWIN_USER_TEMP_DIR, DarwinSockDir, sizeof(DarwinSockDir))) {
-+       strlcat(DarwinSockDir, &quot;.screen&quot;, sizeof(DarwinSockDir));
-+       SockDir = DarwinSockDir;
-+      }
-+    }
-+#endif /* __APPLE__ */
-+
- #ifdef MULTIUSER
-   if (multiattach)
-     {
-@@ -1314,6 +1329,11 @@
-   freopen(&quot;/dev/null&quot;, &quot;w&quot;, stderr);
-   debug(&quot;-- screen.back debug started\n&quot;);

-+#ifdef __APPLE__
-+       if (_vprocmgr_detach_from_console(0) != NULL)
-+               errx(1, &quot;can't detach from console&quot;);
-+#endif
-+
-   /* 
-    * This guarantees that the session owner is listed, even when we
-    * start detached. From now on we should not refer to 'LoginName'
</del></span></pre></div>
<a id="trunkdportssysutilsscreenfilespatchscreencleopard"></a>
<div class="delfile"><h4>Deleted: trunk/dports/sysutils/screen/files/patch-screen.c-leopard (139440 => 139441)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/sysutils/screen/files/patch-screen.c-leopard        2015-08-17 18:47:34 UTC (rev 139440)
+++ trunk/dports/sysutils/screen/files/patch-screen.c-leopard        2015-08-17 18:47:47 UTC (rev 139441)
</span><span class="lines">@@ -1,26 +0,0 @@
</span><del>---- screen.c.orig        2009-01-21 12:06:11.000000000 +0800
-+++ screen.c        2009-01-21 12:08:27.000000000 +0800
-@@ -101,6 +101,11 @@

- #include &quot;logfile.h&quot;        /* islogfile, logfflush */

-+#ifdef __APPLE__
-+#include &lt;vproc.h&gt;
-+#include &quot;vproc_priv.h&quot;
-+#endif
-+
- #ifdef DEBUG
- FILE *dfp;
- #endif
-@@ -1211,6 +1216,11 @@
-   freopen(&quot;/dev/null&quot;, &quot;w&quot;, stderr);
-   debug(&quot;-- screen.back debug started\n&quot;);

-+#ifdef __APPLE__
-+  if (_vprocmgr_move_subset_to_user(real_uid, &quot;Background&quot;) != NULL)
-+      errx(1, &quot;can't migrate to background session&quot;);
-+#endif
-+
-   /* 
-    * This guarantees that the session owner is listed, even when we
-    * start detached. From now on we should not refer to 'LoginName'
</del></span></pre></div>
<a id="trunkdportssysutilsscreenfilespatchscreencleoparddifffromrev139440trunkdportssysutilsscreenfilespatchscreencleopard"></a>
<div class="copfile"><h4>Copied: trunk/dports/sysutils/screen/files/patch-screen.c-leopard.diff (from rev 139440, trunk/dports/sysutils/screen/files/patch-screen.c-leopard) (0 => 139441)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/sysutils/screen/files/patch-screen.c-leopard.diff                                (rev 0)
+++ trunk/dports/sysutils/screen/files/patch-screen.c-leopard.diff        2015-08-17 18:47:47 UTC (rev 139441)
</span><span class="lines">@@ -0,0 +1,26 @@
</span><ins>+--- screen.c.orig        2009-01-21 12:06:11.000000000 +0800
++++ screen.c        2009-01-21 12:08:27.000000000 +0800
+@@ -101,6 +101,11 @@

+ #include &quot;logfile.h&quot;        /* islogfile, logfflush */

++#ifdef __APPLE__
++#include &lt;vproc.h&gt;
++#include &quot;vproc_priv.h&quot;
++#endif
++
+ #ifdef DEBUG
+ FILE *dfp;
+ #endif
+@@ -1211,6 +1216,11 @@
+   freopen(&quot;/dev/null&quot;, &quot;w&quot;, stderr);
+   debug(&quot;-- screen.back debug started\n&quot;);

++#ifdef __APPLE__
++  if (_vprocmgr_move_subset_to_user(real_uid, &quot;Background&quot;) != NULL)
++      errx(1, &quot;can't migrate to background session&quot;);
++#endif
++
+   /* 
+    * This guarantees that the session owner is listed, even when we
+    * start detached. From now on we should not refer to 'LoginName'
</ins></span></pre></div>
<a id="trunkdportssysutilsscreenfilespatchscreencdifffromrev139440trunkdportssysutilsscreenfilespatchscreenc"></a>
<div class="copfile"><h4>Copied: trunk/dports/sysutils/screen/files/patch-screen.c.diff (from rev 139440, trunk/dports/sysutils/screen/files/patch-screen.c) (0 => 139441)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/sysutils/screen/files/patch-screen.c.diff                                (rev 0)
+++ trunk/dports/sysutils/screen/files/patch-screen.c.diff        2015-08-17 18:47:47 UTC (rev 139441)
</span><span class="lines">@@ -0,0 +1,43 @@
</span><ins>+--- screen.c        2014-04-26 18:22:09.000000000 +0200
++++ screen.c        2014-05-01 21:36:54.000000000 +0200
+@@ -109,6 +109,11 @@

+ #include &quot;logfile.h&quot;        /* islogfile, logfflush */

++#ifdef __APPLE__
++#include &lt;vproc.h&gt;
++#include &lt;vproc_priv.h&gt;
++#endif
++
+ #ifdef DEBUG
+ FILE *dfp;
+ #endif
+@@ -1046,6 +1051,16 @@
+         Panic(0, &quot;No $SCREENDIR with multi screens, please.&quot;);
+ #endif
+     }
++#ifdef __APPLE__
++    else if (!multi &amp;&amp; real_uid == eff_uid) {
++      static char DarwinSockDir[PATH_MAX];
++      if (confstr(_CS_DARWIN_USER_TEMP_DIR, DarwinSockDir, sizeof(DarwinSockDir))) {
++       strlcat(DarwinSockDir, &quot;.screen&quot;, sizeof(DarwinSockDir));
++       SockDir = DarwinSockDir;
++      }
++    }
++#endif /* __APPLE__ */
++
+ #ifdef MULTIUSER
+   if (multiattach)
+     {
+@@ -1314,6 +1329,11 @@
+   freopen(&quot;/dev/null&quot;, &quot;w&quot;, stderr);
+   debug(&quot;-- screen.back debug started\n&quot;);

++#ifdef __APPLE__
++       if (_vprocmgr_detach_from_console(0) != NULL)
++               errx(1, &quot;can't detach from console&quot;);
++#endif
++
+   /* 
+    * This guarantees that the session owner is listed, even when we
+    * start detached. From now on we should not refer to 'LoginName'
</ins></span></pre></div>
<a id="trunkdportssysutilsscreenfilespatchwindowc"></a>
<div class="delfile"><h4>Deleted: trunk/dports/sysutils/screen/files/patch-window.c (139440 => 139441)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/sysutils/screen/files/patch-window.c        2015-08-17 18:47:34 UTC (rev 139440)
+++ trunk/dports/sysutils/screen/files/patch-window.c        2015-08-17 18:47:47 UTC (rev 139441)
</span><span class="lines">@@ -1,49 +0,0 @@
</span><del>---- window.c        2014-04-26 12:58:35.000000000 +0200
-+++ window.c        2014-05-01 21:36:54.000000000 +0200
-@@ -33,6 +33,7 @@
- #include &lt;sys/stat.h&gt;
- #include &lt;signal.h&gt;
- #include &lt;fcntl.h&gt;
-+#include &lt;unistd.h&gt;
- #ifndef sun
- # include &lt;sys/ioctl.h&gt;
- #endif
-@@ -1660,6 +1661,38 @@
-   return r;
- }

-+#ifdef RUN_LOGIN
-+/*
-+ * All of the logic to maintain utmpx is now built into /usr/bin/login, so
-+ * all we need to do is call it, and pass the shell command to it.
-+ */
-+extern char *LoginName;
-+
-+static int
-+run_login(const char *path, char *const argv[], char *const envp[])
-+{
-+    const char *shargs[MAXARGS + 1 + 3];
-+    const char **fp, **tp;
-+
-+    if (access(path, X_OK) &lt; 0)
-+        return -1;
-+    shargs[0] = &quot;login&quot;;
-+    shargs[1] = (*argv[0] == '-') ? &quot;-pfq&quot; : &quot;-pflq&quot;;
-+    shargs[2] = LoginName;
-+    shargs[3] = path;
-+    fp = (const char **)argv + 1;
-+    tp = shargs + 4;
-+    /* argv has already been check for length */
-+    while ((*tp++ = *fp++) != NULL) {}
-+    /* shouldn't return unless there was an error */
-+    return (execve(&quot;/usr/bin/login&quot;, (char *const*)shargs, envp));
-+}
-+
-+/* replace the following occurrences of execve() with run_login() */
-+#define execve run_login
-+
-+#endif /* RUN_LOGIN */
-+
- void
- FreePseudowin(w)
- struct win *w;
</del></span></pre></div>
<a id="trunkdportssysutilsscreenfilespatchwindowcdifffromrev139440trunkdportssysutilsscreenfilespatchwindowc"></a>
<div class="copfile"><h4>Copied: trunk/dports/sysutils/screen/files/patch-window.c.diff (from rev 139440, trunk/dports/sysutils/screen/files/patch-window.c) (0 => 139441)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/sysutils/screen/files/patch-window.c.diff                                (rev 0)
+++ trunk/dports/sysutils/screen/files/patch-window.c.diff        2015-08-17 18:47:47 UTC (rev 139441)
</span><span class="lines">@@ -0,0 +1,49 @@
</span><ins>+--- window.c        2014-04-26 12:58:35.000000000 +0200
++++ window.c        2014-05-01 21:36:54.000000000 +0200
+@@ -33,6 +33,7 @@
+ #include &lt;sys/stat.h&gt;
+ #include &lt;signal.h&gt;
+ #include &lt;fcntl.h&gt;
++#include &lt;unistd.h&gt;
+ #ifndef sun
+ # include &lt;sys/ioctl.h&gt;
+ #endif
+@@ -1660,6 +1661,38 @@
+   return r;
+ }

++#ifdef RUN_LOGIN
++/*
++ * All of the logic to maintain utmpx is now built into /usr/bin/login, so
++ * all we need to do is call it, and pass the shell command to it.
++ */
++extern char *LoginName;
++
++static int
++run_login(const char *path, char *const argv[], char *const envp[])
++{
++    const char *shargs[MAXARGS + 1 + 3];
++    const char **fp, **tp;
++
++    if (access(path, X_OK) &lt; 0)
++        return -1;
++    shargs[0] = &quot;login&quot;;
++    shargs[1] = (*argv[0] == '-') ? &quot;-pfq&quot; : &quot;-pflq&quot;;
++    shargs[2] = LoginName;
++    shargs[3] = path;
++    fp = (const char **)argv + 1;
++    tp = shargs + 4;
++    /* argv has already been check for length */
++    while ((*tp++ = *fp++) != NULL) {}
++    /* shouldn't return unless there was an error */
++    return (execve(&quot;/usr/bin/login&quot;, (char *const*)shargs, envp));
++}
++
++/* replace the following occurrences of execve() with run_login() */
++#define execve run_login
++
++#endif /* RUN_LOGIN */
++
+ void
+ FreePseudowin(w)
+ struct win *w;
</ins></span></pre>
</div>
</div>

</body>
</html>