[libcxx-commits] [libcxx] 7dc705f - [libc++][NFC] Fix typo

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Tue Jan 25 12:27:13 PST 2022


Author: Louis Dionne
Date: 2022-01-25T15:27:07-05:00
New Revision: 7dc705f86dd3a0fd8afd6f7db3ea132e2a36fa61

URL: https://github.com/llvm/llvm-project/commit/7dc705f86dd3a0fd8afd6f7db3ea132e2a36fa61
DIFF: https://github.com/llvm/llvm-project/commit/7dc705f86dd3a0fd8afd6f7db3ea132e2a36fa61.diff

LOG: [libc++][NFC] Fix typo

Added: 
    

Modified: 
    libcxx/src/filesystem/directory_iterator.cpp

Removed: 
    


################################################################################
diff  --git a/libcxx/src/filesystem/directory_iterator.cpp b/libcxx/src/filesystem/directory_iterator.cpp
index 90b255d9877f9..98928f06c868a 100644
--- a/libcxx/src/filesystem/directory_iterator.cpp
+++ b/libcxx/src/filesystem/directory_iterator.cpp
@@ -197,9 +197,9 @@ class __dir_stream {
       : __stream_(nullptr), __root_(root) {
     if ((__stream_ = ::opendir(root.c_str())) == nullptr) {
       ec = detail::capture_errno();
-      const bool allow_eacess =
+      const bool allow_eacces =
           bool(opts & directory_options::skip_permission_denied);
-      if (allow_eacess && ec.value() == EACCES)
+      if (allow_eacces && ec.value() == EACCES)
         ec.clear();
       return;
     }


        


More information about the libcxx-commits mailing list