<pre style='margin:0'>
Ryan Schmidt (ryandesign) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/f947f65dcab13e251bde4223352158a6c5b5afc7">https://github.com/macports/macports-ports/commit/f947f65dcab13e251bde4223352158a6c5b5afc7</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new f947f65 lynx: Add forgotten patchfile
</span>f947f65 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit f947f65dcab13e251bde4223352158a6c5b5afc7
</span>Author: Ryan Schmidt <ryandesign@macports.org>
AuthorDate: Tue Dec 26 11:42:27 2017 -0600
<span style='display:block; white-space:pre;color:#404040;'> lynx: Add forgotten patchfile
</span>---
www/lynx/files/patch-LYLocal.c.diff | 87 +++++++++++++++++++++++++++++++++++++
1 file changed, 87 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/www/lynx/files/patch-LYLocal.c.diff b/www/lynx/files/patch-LYLocal.c.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..5c4a7d6
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/www/lynx/files/patch-LYLocal.c.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,87 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Backport a change from 2.8.9dev.3 to fix a crash when renaming files:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+* amend change made in 2.8.8dev.10 to LYLocal.c get_filename(), ensuring that
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ the bstring parameter can be (re)allocated within that function's call to
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ LYgetBString() (report by Raoul Megelas) -TG
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/LYLocal.c.orig 2014-12-21 19:39:40.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/LYLocal.c 2015-01-05 18:40:38.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -80,7 +80,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif /* OK_INSTALL */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ static int get_filename(const char *prompt,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- bstring *buf);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ bstring **buf);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #ifdef OK_PERMIT
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ static int permit_location(char *destpath,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -911,7 +911,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ BStrCopy0(tmpbuf, LYPathLeaf(testpath));
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if (get_filename(cp, tmpbuf)) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if (get_filename(cp, &tmpbuf)) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /*
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * Do not allow the user to also change the location at this time.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -976,7 +976,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ BStrCopy0(tmpbuf, testpath);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ *LYPathLeaf(tmpbuf->str) = '\0';
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if (get_filename(cp, tmpbuf)) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if (get_filename(cp, &tmpbuf)) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if (strlen(tmpbuf->str)) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ StrAllocCopy(savepath, testpath);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ StrAllocCopy(newpath, testpath);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1110,7 +1110,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ char *testpath = NULL;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ BStrCopy0(tmpbuf, "");
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if (get_filename(gettext("Enter name of file to create: "), tmpbuf)) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if (get_filename(gettext("Enter name of file to create: "), &tmpbuf)) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if (strstr(tmpbuf->str, "//") != NULL) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ HTAlert(gettext("Illegal redirection \"//\" found! Request ignored."));
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1147,7 +1147,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ char *testpath = NULL;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ BStrCopy0(tmpbuf, "");
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if (get_filename(gettext("Enter name for new directory: "), tmpbuf)) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if (get_filename(gettext("Enter name for new directory: "), &tmpbuf)) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if (strstr(tmpbuf->str, "//") != NULL) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ HTAlert(gettext("Illegal redirection \"//\" found! Request ignored."));
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -2205,28 +2205,28 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * Check DIRED filename, return true on success
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ static int get_filename(const char *prompt,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- bstring *buf)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ bstring **bufp)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ char *cp;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ _statusline(prompt);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- (void) LYgetBString(&buf, FALSE, 0, NORECALL);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if (strstr(buf->str, "../") != NULL) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ (void) LYgetBString(bufp, FALSE, 0, NORECALL);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if (strstr((*bufp)->str, "../") != NULL) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ HTAlert(gettext("Illegal filename; request ignored."));
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return FALSE;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } else if (no_dotfiles || !show_dotfiles) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- cp = LYLastPathSep(buf->str); /* find last slash */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ cp = LYLastPathSep((*bufp)->str); /* find last slash */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if (cp)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ cp += 1;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- cp = buf->str;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ cp = (*bufp)->str;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if (*cp == '.') {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ HTAlert(gettext("Illegal filename; request ignored."));
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return FALSE;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- return !isBEmpty(buf);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ return !isBEmpty((*bufp));
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #ifdef OK_INSTALL
</span></pre><pre style='margin:0'>
</pre>