1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-27 14:04:05 +03:00

Samba janitors: applying mbp's redundant umask fix.

Jeremy.
This commit is contained in:
Jeremy Allison -
parent d4d8d27bf1
commit b54f6bf06c
2 changed files with 0 additions and 8 deletions

View File

@ -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"));

View File

@ -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");