changeset 6363:e5227a46343d

[project @ 2007-02-27 15:12:25 by jwe]
author jwe
date Tue, 27 Feb 2007 15:12:25 +0000
parents 027389c3e58e
children 0d41cafd2e0d
files liboctave/ChangeLog liboctave/file-ops.cc
diffstat 2 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/liboctave/ChangeLog	Tue Feb 27 13:00:44 2007 +0000
+++ b/liboctave/ChangeLog	Tue Feb 27 15:12:25 2007 +0000
@@ -1,3 +1,8 @@
+2007-02-27  From Michael Goffioul  <michael.goffioul@swing.be>
+
+	* file-ops.cc (file_ops::recursive_rmdir):
+	Close dir_entry object before calling rmdir.
+
 2007-02-26  From Michael Goffioul  <michael.goffioul@swing.be>
 
 	* Makefile.in: Use $(LN_S) instead of ln or ln -s.
--- a/liboctave/file-ops.cc	Tue Feb 27 13:00:44 2007 +0000
+++ b/liboctave/file-ops.cc	Tue Feb 27 15:12:25 2007 +0000
@@ -377,7 +377,10 @@
 	}
 
       if (status >= 0)
-	status = file_ops::rmdir (name, msg);
+	{
+	  dir.close ();
+	  status = file_ops::rmdir (name, msg);
+	}
     }
   else
     {