summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2003-02-07 22:52:19 +0000
committerJeremy Allison <jra@samba.org>2003-02-07 22:52:19 +0000
commitb54f6bf06c6a4032ba0d6c2a25699948685ccf6a (patch)
treeefe2ff7cecdb5b7bf0f504c5c5958e67d989ecc9
parentd4d8d27bf136bdbc785c7aad027537aabaa56a76 (diff)
downloadsamba-b54f6bf06c6a4032ba0d6c2a25699948685ccf6a.tar.gz
samba-b54f6bf06c6a4032ba0d6c2a25699948685ccf6a.tar.xz
samba-b54f6bf06c6a4032ba0d6c2a25699948685ccf6a.zip
Samba janitors: applying mbp's redundant umask fix.
Jeremy.
-rw-r--r--source/client/client.c4
-rw-r--r--source/torture/rpctorture.c4
2 files changed, 0 insertions, 8 deletions
diff --git a/source/client/client.c b/source/client/client.c
index f7c076b79e5..4761b0ae5c5 100644
--- a/source/client/client.c
+++ b/source/client/client.c
@@ -73,8 +73,6 @@ extern BOOL tar_reset;
/* clitar bits end */
-static mode_t myumask = 0755;
-
static BOOL prompt = True;
static int printmode = 1;
@@ -2756,8 +2754,6 @@ static void remember_query_host(const char *arg,
pstrcpy(workgroup,lp_workgroup());
load_interfaces();
- myumask = umask(0);
- umask(myumask);
if (getenv("USER")) {
pstrcpy(username,getenv("USER"));
diff --git a/source/torture/rpctorture.c b/source/torture/rpctorture.c
index d984ea28421..086f8d5d331 100644
--- a/source/torture/rpctorture.c
+++ b/source/torture/rpctorture.c
@@ -225,7 +225,6 @@ enum client_action
pstring term_code;
BOOL got_pass = False;
char *cmd_str="";
- mode_t myumask = 0755;
enum client_action cli_action = CLIENT_NONE;
int nprocs = 1;
int numops = 100;
@@ -290,9 +289,6 @@ enum client_action
setup_logging(pname, True);
- myumask = umask(0);
- umask(myumask);
-
if (!get_myname(global_myname))
{
fprintf(stderr, "Failed to get my hostname.\n");