From 29b129b8555d53be185b442814b2396585418878 Mon Sep 17 00:00:00 2001 From: Eric Botcazou Date: Sat, 30 Mar 2019 13:36:16 +0000 Subject: [PATCH] * src/c++17/fs_ops.cc (fs::permissions): Use std::errc::not_supported. From-SVN: r270033 --- libstdc++-v3/ChangeLog | 4 ++++ libstdc++-v3/src/c++17/fs_ops.cc | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index c7b47d8427f..98c218b5f7e 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,7 @@ +2019-03-30 Eric Botcazou + + * src/c++17/fs_ops.cc (fs::permissions): Use std::errc::not_supported. + 2019-03-28 Ville Voutilainen Don't revisit a variant we are already visiting. diff --git a/libstdc++-v3/src/c++17/fs_ops.cc b/libstdc++-v3/src/c++17/fs_ops.cc index 3ff0ded1c66..5ca523826cb 100644 --- a/libstdc++-v3/src/c++17/fs_ops.cc +++ b/libstdc++-v3/src/c++17/fs_ops.cc @@ -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(prms))) err = errno; #endif -- 2.30.2