From: Dave Brolley Date: Fri, 24 Jun 2011 17:43:59 +0000 (-0400) Subject: Removed useless calls to umask in create_temp_dir. X-Git-Tag: release-1.6~105 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=b0d0269fa3d6d50cf5d96e3d01e580b72adb6025;p=systemtap.git Removed useless calls to umask in create_temp_dir. --- diff --git a/main.cxx b/main.cxx index 2ecae0484..e39e16175 100644 --- 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);