Skip to content

Commit

Permalink
[XrdCl] Fix a bug in XrdClZipArchive.cc
Browse files Browse the repository at this point in the history
Fixes an if-statement in the OpenFile function, which caused the program
to try and append the file even if the user did not intend for it.
  • Loading branch information
AngeloGalav committed Aug 4, 2023
1 parent d35bbd5 commit f55f21e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/XrdCl/XrdClZipArchive.cc
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ namespace XrdCl
{
// the file does not exist in the archive so it only makes sense
// if our user is opening for append
if( flags | OpenFlags::New )
if( flags & OpenFlags::New )
{
openfn = fn;
lfh.reset( new LFH( fn, crc32, size, time( 0 ) ) );
Expand Down

0 comments on commit f55f21e

Please sign in to comment.