Skip to content

Commit 4db02c3

Browse files
Fix exiv2 app: extract, existing file (1. #1934)
1 parent a700a9c commit 4db02c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/actions.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1718,7 +1718,7 @@ int metacopy(const std::string& source, const std::string& tgt, Exiv2::ImageType
17181718
std::string target(bStdout ? temporaryPath() : tgt);
17191719

17201720
std::unique_ptr<Exiv2::Image> targetImage;
1721-
if (Exiv2::fileExists(target)) {
1721+
if (preserve && Exiv2::fileExists(target)) {
17221722
targetImage = Exiv2::ImageFactory::open(target);
17231723
targetImage->readMetadata();
17241724
} else {

0 commit comments

Comments
 (0)