* src/c++17/fs_ops.cc (fs::permissions): Use std::errc::not_supported.

From-SVN: r270033
This commit is contained in:
Eric Botcazou 2019-03-30 13:36:16 +00:00 committed by Eric Botcazou
parent 09062aa45c
commit 29b129b855
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2019-03-30 Eric Botcazou <ebotcazou@adacore.com>
* src/c++17/fs_ops.cc (fs::permissions): Use std::errc::not_supported.
2019-03-28 Ville Voutilainen <ville.voutilainen@gmail.com>
Don't revisit a variant we are already visiting.

View File

@ -1127,7 +1127,7 @@ fs::permissions(const path& p, perms prms, perm_options opts,
err = errno;
#else
if (nofollow && is_symlink(st))
ec = std::make_error_code(std::errc::operation_not_supported);
ec = std::make_error_code(std::errc::not_supported);
else if (posix::chmod(p.c_str(), static_cast<mode_t>(prms)))
err = errno;
#endif