Revision: 1412
Author:   [email protected]
Date:     Thu Feb  2 01:13:04 2012
Log:      Enable file=/dev/null to work as fix for RT74565
http://code.google.com/p/perl-devel-nytprof/source/detail?r=1412

Modified:
 /trunk/Changes
 /trunk/NYTProf.xs

=======================================
--- /trunk/Changes      Mon Jan  2 12:45:54 2012
+++ /trunk/Changes      Thu Feb  2 01:13:04 2012
@@ -8,8 +8,9 @@

 =head2 Changes in Devel::NYTProf 4.07

+  Fixed html generation to be valid, RT70207 (H.Merijn Brand).
+  Enable file=/dev/null to work as fix for RT74565.
   Added and clarified some notes in the troubleshooting docs.
-  Fixed html generation to be valid RT70207 (H.Merijn Brand).

 =head2 Changes in Devel::NYTProf 4.06 (svn r1406) 30th Nov 2010

=======================================
--- /trunk/NYTProf.xs   Fri Jun  3 14:17:20 2011
+++ /trunk/NYTProf.xs   Thu Feb  2 01:13:04 2012
@@ -1635,7 +1635,7 @@
     char filename_buf[MAXPATHLEN];
     /* 'x' is a GNU C lib extension for O_EXCL which gives us a little
      * extra protection, but it isn't POSIX compliant */
-    const char *mode = "wbx";
+    const char *mode = (strnEQ(filename, "/dev/", 4) ? "wb" : "wbx");
     /* most systems that don't support it will silently ignore it
      * but for some we need to remove it to avoid an error */
 #ifdef WIN32

--
You've received this message because you are subscribed to
the Devel::NYTProf Development User group.

Group hosted at:  http://groups.google.com/group/develnytprof-dev
Project hosted at:  http://perl-devel-nytprof.googlecode.com
CPAN distribution:  http://search.cpan.org/dist/Devel-NYTProf

To post, email:  [email protected]
To unsubscribe, email:  [email protected]

Reply via email to