Skip to content

Commit 44ad977

Browse files
authored
FileSystem::Remove: Fix return value (#5136)
Close #4979.
1 parent 549da57 commit 44ad977

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Src/Base/AMReX_FileSystem.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ CurrentPath ()
189189
bool
190190
Remove (std::string const& filename)
191191
{
192-
return unlink(filename.c_str());
192+
return (unlink(filename.c_str()) == 0);
193193
}
194194

195195
bool

0 commit comments

Comments
 (0)