* src/c++17/fs_ops.cc (fs::permissions): Use std::errc::not_supported.
From-SVN: r270033
This commit is contained in:
parent
09062aa45c
commit
29b129b855
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue