Skip to content

Commit

Permalink
[Server] Strip tcp cgi info when doing delegated copy (i.e. TpcLite).
Browse files Browse the repository at this point in the history
  • Loading branch information
abh3 committed Aug 12, 2018
1 parent a437be7 commit 4d72ecd
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/XrdOfs/XrdOfsTPCProg.cc
Expand Up @@ -242,6 +242,7 @@ int XrdOfsTPCProg::Xeq()
credFile cFile(Job);
const char *Args[6], *eVec[2], **envArg;
char *lP, *Colon, *cksVal, sBuff[8], *tident = Job->Info.Org;
char *Quest = index(Job->Info.Key, '?');
int rc, aNum = 0;

// If we have credentials, write them out to a file
Expand All @@ -254,8 +255,7 @@ int XrdOfsTPCProg::Xeq()
// Echo out what we are doing if so desired
//
if (doEcho)
{char *Quest = index(Job->Info.Key, '?');
if (Quest) *Quest = 0;
{if (Quest) *Quest = 0;
OfsEroute.Say(Pname,tident," copying ",Job->Info.Key," to ",Job->Info.Dst);
if (Quest) *Quest = '?';
}
Expand All @@ -281,12 +281,14 @@ int XrdOfsTPCProg::Xeq()
Args[aNum++] = Job->Info.Key;
Args[aNum++] = Job->Info.Dst;

// Determine if credentials are being passed
// Determine if credentials are being passed, If so, we don't need any cgi but
// we must set an envar to point to the file holding the credentials.
//
if (cFile.Path)
{eVec[0] = cFile.pEnv;
eVec[1] = 0;
envArg = eVec;
if (Quest) *Quest = 0;
} else envArg = 0;

// Start the job.
Expand Down

0 comments on commit 4d72ecd

Please sign in to comment.