mirror of
https://github.com/boostorg/filesystem.git
synced 2026-01-19 04:12:09 +00:00
Clear ec on successful permission operation
This commit is contained in:
@@ -4379,6 +4379,9 @@ void permissions(path const& p, perms prms, system::error_code* ec)
|
||||
if ((prms & add_perms) && (prms & remove_perms)) // precondition failed
|
||||
return;
|
||||
|
||||
if (ec)
|
||||
ec->clear();
|
||||
|
||||
#if defined(BOOST_FILESYSTEM_USE_WASI)
|
||||
emit_error(BOOST_ERROR_NOT_SUPPORTED, p, ec, "boost::filesystem::permissions");
|
||||
#elif defined(BOOST_POSIX_API)
|
||||
|
||||
Reference in New Issue
Block a user