]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* src/c++17/fs_ops.cc (fs::permissions): Use std::errc::not_supported.
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 30 Mar 2019 13:36:16 +0000 (13:36 +0000)
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 30 Mar 2019 13:36:16 +0000 (13:36 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@270033 138bc75d-0d04-0410-961f-82ee72b054a4

libstdc++-v3/ChangeLog
libstdc++-v3/src/c++17/fs_ops.cc

index c7b47d8427f9951ad64782531a180d0e2a7bd5c6..98c218b5f7ebc480bcadf4479cd738f317eb578a 100644 (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.
index 3ff0ded1c66cde6a4615c73f05f5a7173044ebf4..5ca523826cb390f7b17b11d52d634293a0dd43fd 100644 (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