Skip to content

Commit

Permalink
Fix exiv2 app: extract, existing file (1. #1934)
Browse files Browse the repository at this point in the history
  • Loading branch information
postscript-dev committed Nov 22, 2022
1 parent a700a9c commit 4db02c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/actions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1718,7 +1718,7 @@ int metacopy(const std::string& source, const std::string& tgt, Exiv2::ImageType
std::string target(bStdout ? temporaryPath() : tgt);

std::unique_ptr<Exiv2::Image> targetImage;
if (Exiv2::fileExists(target)) {
if (preserve && Exiv2::fileExists(target)) {
targetImage = Exiv2::ImageFactory::open(target);
targetImage->readMetadata();
} else {
Expand Down

0 comments on commit 4db02c3

Please sign in to comment.