]> sourceware.org Git - systemtap.git/commitdiff
Removed useless calls to umask in create_temp_dir.
authorDave Brolley <brolley@redhat.com>
Fri, 24 Jun 2011 17:43:59 +0000 (13:43 -0400)
committerDave Brolley <brolley@redhat.com>
Fri, 24 Jun 2011 17:43:59 +0000 (13:43 -0400)
main.cxx

index 2ecae04841d1be6b6d064382bca44482a3897a92..e39e16175aed58331b54b89e46bdc32399d90398 100644 (file)
--- a/main.cxx
+++ b/main.cxx
@@ -384,9 +384,7 @@ create_temp_dir (systemtap_session &s)
 
   string stapdir = "/stapXXXXXX";
   string tmpdirt = tmpdir_env + stapdir;
-  mode_t mask = umask(0);
   const char *tmpdir_name = mkdtemp((char *)tmpdirt.c_str());
-  umask(mask);
   if (! tmpdir_name)
     {
       const char* e = strerror(errno);
This page took 0.029868 seconds and 5 git commands to generate.