# HG changeset patch # User jwe # Date 1172589145 0 # Node ID e5227a46343d83999abe57b537acc011ac58f194 # Parent 027389c3e58e6e9f233e88d415f195f6b6e6bf28 [project @ 2007-02-27 15:12:25 by jwe] diff --git a/liboctave/ChangeLog b/liboctave/ChangeLog --- a/liboctave/ChangeLog +++ b/liboctave/ChangeLog @@ -1,3 +1,8 @@ +2007-02-27 From Michael Goffioul + + * file-ops.cc (file_ops::recursive_rmdir): + Close dir_entry object before calling rmdir. + 2007-02-26 From Michael Goffioul * Makefile.in: Use $(LN_S) instead of ln or ln -s. diff --git a/liboctave/file-ops.cc b/liboctave/file-ops.cc --- a/liboctave/file-ops.cc +++ b/liboctave/file-ops.cc @@ -377,7 +377,10 @@ } if (status >= 0) - status = file_ops::rmdir (name, msg); + { + dir.close (); + status = file_ops::rmdir (name, msg); + } } else {