1f337496f7
* Several modules were updated to fix minor bugs. * Tests were fixed. * Documentation was improved. Changes 5.14.0: * Unicode version 6.0 is now supported. * Regular expressions can now be reset to the default modifiers. * Four new regular expression modifiers, "/d", "/l" , "/u", and "/a", were introduced. * The substitution operators now support the modifier "/r" to work non-destructively, leaving the original unmodified. * Larger octals can now be specified. * Array and hash operators can now experimentally operate directly on hard references. * printf-like functions now understand post-1980 size modifiers. * Exception handling was made more reliable and consistent. * Other enhancements and many bug fixes were made PkgSrc: * Fixed configuring on Mac OS X 10.7.
18 lines
677 B
Text
18 lines
677 B
Text
$NetBSD: patch-ah,v 1.13 2011/08/05 18:06:14 adam Exp $
|
|
|
|
NetBSD's implementation sometimes returns "/"; reject that too.
|
|
|
|
--- perl.c.orig 2010-05-21 14:41:18.000000000 +0000
|
|
+++ perl.c 2010-05-21 14:44:01.000000000 +0000
|
|
@@ -1422,8 +1422,10 @@
|
|
to the executable (or returning an error from the readlink). Any valid
|
|
path has a '/' in it somewhere, so use that to validate the result.
|
|
See http://www.freebsd.org/cgi/query-pr.cgi?pr=35703
|
|
+
|
|
+ NetBSD's implementation sometimes returns "/"; reject that too.
|
|
*/
|
|
- if (len > 0 && memchr(buf, '/', len)) {
|
|
+ if (len > 1 && memchr(buf, '/', len)) {
|
|
sv_setpvn(sv,buf,len);
|
|
}
|
|
else {
|