[Lldb-commits] [PATCH] D21422: Fix typo in eOpenOptionDontFollowSymlinks

Francis Ricci via lldb-commits lldb-commits at lists.llvm.org
Mon Jun 20 17:10:48 PDT 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL273225: Fix typo in eOpenOptionDontFollowSymlinks (authored by fjricci).

Changed prior to commit:
  http://reviews.llvm.org/D21422?vs=60937&id=61325#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D21422

Files:
  lldb/trunk/include/lldb/Host/File.h
  lldb/trunk/source/Host/common/File.cpp
  lldb/trunk/source/Target/Platform.cpp

Index: lldb/trunk/source/Host/common/File.cpp
===================================================================
--- lldb/trunk/source/Host/common/File.cpp
+++ lldb/trunk/source/Host/common/File.cpp
@@ -238,7 +238,7 @@
         oflag |= O_RDONLY;
 
 #ifndef _WIN32
-        if (options & eOpenoptionDontFollowSymlinks)
+        if (options & eOpenOptionDontFollowSymlinks)
             oflag |= O_NOFOLLOW;
 #endif
     }
Index: lldb/trunk/source/Target/Platform.cpp
===================================================================
--- lldb/trunk/source/Target/Platform.cpp
+++ lldb/trunk/source/Target/Platform.cpp
@@ -1431,7 +1431,7 @@
 
     uint32_t source_open_options = File::eOpenOptionRead | File::eOpenOptionCloseOnExec;
     if (source.GetFileType() == FileSpec::eFileTypeSymbolicLink)
-        source_open_options |= File::eOpenoptionDontFollowSymlinks;
+        source_open_options |= File::eOpenOptionDontFollowSymlinks;
 
     File source_file(source, source_open_options, lldb::eFilePermissionsUserRW);
     Error error;
Index: lldb/trunk/include/lldb/Host/File.h
===================================================================
--- lldb/trunk/include/lldb/Host/File.h
+++ lldb/trunk/include/lldb/Host/File.h
@@ -45,7 +45,7 @@
         eOpenOptionNonBlocking          = (1u << 4),    // File reads
         eOpenOptionCanCreate            = (1u << 5),    // Create file if doesn't already exist
         eOpenOptionCanCreateNewOnly     = (1u << 6),    // Can create file only if it doesn't already exist
-        eOpenoptionDontFollowSymlinks   = (1u << 7),
+        eOpenOptionDontFollowSymlinks   = (1u << 7),
         eOpenOptionCloseOnExec          = (1u << 8)     // Close the file when executing a new process
     };
     


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D21422.61325.patch
Type: text/x-patch
Size: 1752 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20160621/7367971b/attachment.bin>


More information about the lldb-commits mailing list