Skip to content

Commit

Permalink
[Server] Add O_RDWR open flag when creating file to avoid fs issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
abh3 authored and simonmichal committed Oct 4, 2022
1 parent dd31f54 commit 775d7dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/XrdOss/XrdOssCreate.cc
Expand Up @@ -293,7 +293,7 @@ int XrdOssSys::Alloc_Local(XrdOssCreateInfo &crInfo, XrdOucEnv &env)

// Simply open the file in the local filesystem, creating it if need be.
//
do {datfd = open(crInfo.Path, O_CREAT|O_TRUNC, crInfo.Amode);}
do {datfd = open(crInfo.Path, O_RDWR|O_CREAT|O_TRUNC, crInfo.Amode);}
while(datfd < 0 && errno == EINTR);
if (datfd < 0) return -errno;

Expand Down

0 comments on commit 775d7dd

Please sign in to comment.