octave-maintainers
[
Top
][
All Lists
]
Advanced
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
]
Fix for recursive_rmdir
From
:
michael . goffioul
Subject
:
Fix for recursive_rmdir
Date
:
Tue, 27 Feb 2007 15:14:06 +0100
This patch allows correct directory deletion: under MSVC, directories
can't be removed because the dir_entry object still has a reference to
it.
Michael.
Index: file-ops.cc
===================================================================
RCS file: /cvs/octave/liboctave/file-ops.cc,v
retrieving revision 1.44
diff -c -p -r1.44 file-ops.cc
*** file-ops.cc 6 Feb 2007 18:55:23 -0000 1.44
--- file-ops.cc 27 Feb 2007 14:11:40 -0000
*************** file_ops::recursive_rmdir (const std::st
*** 377,383 ****
}
if (status >= 0)
! status = file_ops::rmdir (name, msg);
}
else
{
--- 377,386 ----
}
if (status >= 0)
! {
! dir.close ();
! status = file_ops::rmdir (name, msg);
! }
}
else
{
reply via email to
[Prev in Thread]
Current Thread
[
Next in Thread
]
Fix for recursive_rmdir
,
michael . goffioul
<=
Fix for recursive_rmdir
,
John W. Eaton
,
2007/02/27
Prev by Date:
searchable email archive
Next by Date:
package manager patch + problem
Previous by thread:
searchable email archive
Next by thread:
Fix for recursive_rmdir
Index(es):
Date
Thread