Skip to content

Commit

Permalink
S3: add missing temporary define for XrdPosix_Getxattr
Browse files Browse the repository at this point in the history
  • Loading branch information
apeters1971 committed May 23, 2024
1 parent 61511a5 commit 4c9f98a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/XrdS3/XrdS3Utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include "XrdS3Utils.hh"
//------------------------------------------------------------------------------
#include <sys/stat.h>
#include <sys/xattr.h>
#include <cstring>
#include <iomanip>
#include <sstream>
Expand Down Expand Up @@ -306,6 +307,10 @@ std::string S3Utils::GetXattr(const std::filesystem::path &path,
const std::string &key) {
std::vector<char> res;

// TODO: Replace with the real XrdPosix_Getxattr once implemented.
#include "XrdS3XAttr.hh"
#define XrdPosix_Getxattr getxattr

auto ret =
XrdPosix_Getxattr(path.c_str(), ("user.s3." + key).c_str(), nullptr, 0);

Expand Down

0 comments on commit 4c9f98a

Please sign in to comment.