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
07fb506f
Commit
07fb506f
authored
Feb 28, 2019
by
Nikola Hardi
Browse files
Fix the result rewriter for stat command
parent
37ed12c8
Pipeline
#759895
failed with stage
in 4 minutes and 29 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
TJAlienResultRewriter.cxx
View file @
07fb506f
...
...
@@ -14,7 +14,7 @@ using namespace std;
const
map
<
string
,
pair
<
string
,
string
>>
TJAlienResultRewriter
::
rules
=
{
{
"ls"
,
{
""
,
"0"
}},
{
"cd"
,
{
"1"
,
"0"
}},
{
"stat"
,
{
"
0
"
,
"
1
"
}},
{
"stat"
,
{
"
1
"
,
"
0
"
}},
{
"mkdir"
,
{
"1"
,
"0"
}},
};
...
...
TJAlienSystem.cxx
View file @
07fb506f
...
...
@@ -453,9 +453,9 @@ Bool_t TJAlienSystem::AccessPathName(const char *path, EAccessMode mode)
TJAlienResult
*
result
=
(
TJAlienResult
*
)
gGrid
->
Command
(
TString
(
"stat"
)
+
" "
+
sPath
);
const
char
*
val
=
result
->
GetKey
(
0
,
"__result__"
);
if
(
strcmp
(
val
,
"
0
"
)
==
0
)
{
if
(
strcmp
(
val
,
"
1
"
)
==
0
)
{
return
false
;
}
else
if
(
strcmp
(
val
,
"
1
"
)
==
0
)
{
}
else
if
(
strcmp
(
val
,
"
0
"
)
==
0
)
{
return
true
;
}
else
{
return
true
;
...
...
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