$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-commit] svn:boost r50562 - trunk/libs/filesystem/src
From: bdawes_at_[hidden]
Date: 2009-01-13 08:30:08
Author: bemandawes
Date: 2009-01-13 08:30:07 EST (Tue, 13 Jan 2009)
New Revision: 50562
URL: http://svn.boost.org/trac/boost/changeset/50562
Log:
Filesystem: Fix #2531 by applying suggested patch
Text files modified: 
   trunk/libs/filesystem/src/operations.cpp |     2 +-                                      
   1 files changed, 1 insertions(+), 1 deletions(-)
Modified: trunk/libs/filesystem/src/operations.cpp
==============================================================================
--- trunk/libs/filesystem/src/operations.cpp	(original)
+++ trunk/libs/filesystem/src/operations.cpp	2009-01-13 08:30:07 EST (Tue, 13 Jan 2009)
@@ -583,7 +583,7 @@
         // rmdir() or unlink() as indicated.
         // Same bug also reported for QNX, with the same fix.
         int err = ::unlink( p );
-        if ( err != EPERM )
+        if ( err == 0 || errno != EPERM )
           return err;
         return ::rmdir( p );
 #     else