[148672] trunk/dports/editors/nano
jeremyhu at macports.org
jeremyhu at macports.org
Sat May 14 00:20:38 PDT 2016
Revision: 148672
https://trac.macports.org/changeset/148672
Author: jeremyhu at macports.org
Date: 2016-05-14 00:20:37 -0700 (Sat, 14 May 2016)
Log Message:
-----------
nano: Fix a crash at launch on Leopard
Modified Paths:
--------------
trunk/dports/editors/nano/Portfile
Added Paths:
-----------
trunk/dports/editors/nano/files/PR-47307.patch
Modified: trunk/dports/editors/nano/Portfile
===================================================================
--- trunk/dports/editors/nano/Portfile 2016-05-14 04:49:24 UTC (rev 148671)
+++ trunk/dports/editors/nano/Portfile 2016-05-14 07:20:37 UTC (rev 148672)
@@ -5,7 +5,7 @@
name nano
version 2.5.3
-revision 1
+revision 2
categories editors
platforms darwin freebsd
license GPL-3
@@ -31,6 +31,7 @@
port:zlib
patchfiles nawk.patch \
+ PR-47307.patch \
PR-51201-use-after-free.patch
configure.args --disable-wrapping-as-root \
Added: trunk/dports/editors/nano/files/PR-47307.patch
===================================================================
--- trunk/dports/editors/nano/files/PR-47307.patch (rev 0)
+++ trunk/dports/editors/nano/files/PR-47307.patch 2016-05-14 07:20:37 UTC (rev 148672)
@@ -0,0 +1,13 @@
+realpath(x, NULL) is not portable and will always crash on Leopard
+
+--- src/color.c
++++ src/color.c
+@@ -215,7 +215,7 @@ void color_update(void)
+ /* Concatenate the current working directory with the
+ * specified filename, and canonicalize the result. */
+ sprintf(joinednames, "%s/%s", currentdir, openfile->filename);
+- fullname = realpath(joinednames, NULL);
++ fullname = get_full_path(joinednames);
+ free(currentdir);
+ }
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160514/f8c5ecb7/attachment.html>
More information about the macports-changes
mailing list