]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/boost/test/impl/debug.ipp
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / boost / boost / test / impl / debug.ipp
index bee956c1cbb65cffc19de1c1a5ed702c7ce76e04..8d0e258e643c90b2c03b37f1da3c6142666d696b 100644 (file)
@@ -84,7 +84,7 @@ namespace std { using ::memset; using ::sprintf; }
 
 #    include <procfs.h>
 
-#  elif defined(linux) || defined(__linux)
+#  elif defined(linux) || defined(__linux__)
 
 #    define BOOST_LINUX_BASED_DEBUG
 
@@ -422,7 +422,9 @@ prepare_gdb_cmnd_file( dbg_startup_info const& dsi )
     static char cmd_file_name[] = "/tmp/btl_gdb_cmd_XXXXXX"; // !! ??
 
     // prepare commands
+    const mode_t cur_umask = ::umask( S_IRWXO | S_IRWXG );
     fd_holder cmd_fd( ::mkstemp( cmd_file_name ) );
+    ::umask( cur_umask );
 
     if( cmd_fd == -1 )
         return 0;
@@ -890,7 +892,9 @@ attach_debugger( bool break_or_continue )
 #elif defined(BOOST_UNIX_BASED_DEBUG) // ********************** UNIX
 
     char init_done_lock_fn[] = "/tmp/btl_dbg_init_done_XXXXXX";
+    const mode_t cur_umask = ::umask( S_IRWXO | S_IRWXG );
     fd_holder init_done_lock_fd( ::mkstemp( init_done_lock_fn ) );
+    ::umask( cur_umask );
 
     if( init_done_lock_fd == -1 )
         return false;