Skip to content

Commit

Permalink
Strip off opaque information from dest filename when copying to local…
Browse files Browse the repository at this point in the history
… filesystem.
  • Loading branch information
abh3 authored and ljanyst committed Jun 6, 2013
1 parent d8c807b commit 5a14577
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/XrdApps/XrdCpy.cc
Expand Up @@ -1092,7 +1092,7 @@ int doCp_xrd2loc(const char *src, const char *dst) {
if (strcmp(dst, "-"))
// Copy to local fs
//unlink(dst);
{f = open(dst, loc_wr_flags,
{f = open(getFName(dst), loc_wr_flags,
S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH);
if (f < 0)
{EMSG(strerror(errno) <<" creating '" <<getFName(dst) <<"'.");
Expand Down

0 comments on commit 5a14577

Please sign in to comment.