Skip to content

Commit

Permalink
test - writeredir
Browse files Browse the repository at this point in the history
  • Loading branch information
Jo-stfc committed Nov 12, 2024
1 parent 441fd05 commit bbde7f4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/XrdXrootd/XrdXrootdConfig.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1568,7 +1568,8 @@ int XrdXrootdProtocol::xred(XrdOucStream &Config)
{"rm", RD_rm},
{"rmdir", RD_rmdir},
{"stat", RD_stat},
{"trunc", RD_trunc}
{"trunc", RD_trunc},
{"write", RD_open2}
};
static const int rHLen = 264;
char rHost[2][rHLen], *hP[2], *val;
Expand Down
4 changes: 3 additions & 1 deletion src/XrdXrootd/XrdXrootdXeq.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1397,6 +1397,8 @@ int XrdXrootdProtocol::do_Open()
mode = mapMode(mode) | S_IRUSR | S_IWUSR; usage = 'r';
if (opts & kXR_open_read)
{openopts = SFS_O_RDONLY; *op++ = 'r'; opC = XROOTD_MON_OPENR;}
else{
STATIC_REDIRECT(RD_open2);
else if (opts & kXR_open_updt)
{openopts = SFS_O_RDWR; *op++ = 'u'; usage = 'w';
opC = XROOTD_MON_OPENW;}
Expand Down Expand Up @@ -1440,7 +1442,7 @@ int XrdXrootdProtocol::do_Open()
if (opts & kXR_posc) {*op++ = 'p'; openopts |= SFS_O_POSC;}
if (opts & kXR_seqio) {*op++ = 'S'; openopts |= SFS_O_SEQIO;}
*op = '\0';

}
// Do some tracing, avoid exposing any security token in the URL
//
if (TRACING(TRACE_FS))
Expand Down
2 changes: 1 addition & 1 deletion xrootd.spec
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

Name: xrootd
Epoch: 1
Release: 3%{?dist}%{?with_clang:.clang}%{?with_asan:.asan}%{?with_openssl11:.ssl11}
Release: 99%{?dist}%{?with_clang:.clang}%{?with_asan:.asan}%{?with_openssl11:.ssl11}
Summary: Extended ROOT File Server
Group: System Environment/Daemons
License: LGPL-3.0-or-later AND BSD-2-Clause AND BSD-3-Clause AND curl AND MIT AND Zlib
Expand Down

0 comments on commit bbde7f4

Please sign in to comment.