Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
JAliEn
JAliEn-ROOT
Commits
11732e7a
Commit
11732e7a
authored
Mar 26, 2019
by
Volodymyr Yurchenko
Browse files
Get tmp dir from environment (also check TMP and TEMP)
parent
2fcbd536
Pipeline
#775831
passed with stage
in 1 minute and 48 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
TJAlien.cxx
View file @
11732e7a
...
...
@@ -43,6 +43,20 @@ TJAlien::TJAlien (const char* gridUrl, const char* uId, const char* passwd,
fGrid
=
"alien"
;
gGrid
=
this
;
if
(
getenv
(
"HOME"
)
!=
NULL
)
homedir
=
getenv
(
"HOME"
);
else
homedir
=
"~"
;
if
(
getenv
(
"TMPDIR"
)
!=
NULL
)
tmpdir
=
getenv
(
"TMPDIR"
);
else
if
(
getenv
(
"TMP"
)
!=
NULL
)
tmpdir
=
getenv
(
"TMP"
);
else
if
(
getenv
(
"TEMP"
)
!=
NULL
)
tmpdir
=
getenv
(
"TEMP"
);
else
tmpdir
=
P_tmpdir
;
CreateConnection
();
}
...
...
@@ -69,16 +83,6 @@ void TJAlien::CreateConnection()
readBuffer
=
""
;
// Load certificate
if
(
getenv
(
"HOME"
)
==
NULL
)
homedir
=
"~"
;
else
homedir
=
getenv
(
"HOME"
);
if
(
getenv
(
"TMPDIR"
)
==
NULL
)
tmpdir
=
P_tmpdir
;
else
tmpdir
=
getenv
(
"TMPDIR"
);
std
::
stringstream
tokencert_s
,
tokenkey_s
;
tokencert_s
<<
tmpdir
<<
"/tokencert_"
<<
getuid
()
<<
".pem"
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment