Project

General

Profile

Bug #518

return code 0 when unable to insert exif tags...

Added by Daniel J Blueman over 14 years ago. Updated almost 13 years ago.

Status:
Closed
Priority:
Normal
Category:
miscellaneous
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:

Description

Return code 0 is given when exiv2 is invoked to insert exif data and fails:

$ ls 2007-04-09_10-55-10.exv
ls: 2007-04-09_10-55-10.exv: No such file or directory
$ /usr/bin/exiv2 in 2007-04-09_10-55-10.tiff./2007-04-09_10-55-10.exv: Failed to open the file
$ echo $?
0 <---- should be >0
$ strace /usr/bin/exiv2 in 2007-04-09_10-55-10.tiff
stat("2007-04-09_10-55-10.tiff", {st_mode=S_IFREG|0644, st_size=24117452, ...}) = 0
stat("./2007-04-09_10-55-10.exv", 0x7fff61384700) = -1 ENOENT (No such file or directory)
write(2, "./2007-04-09_10-55-10.exv", 25./2007-04-09_10-55-10.exv) = 25
write(2, ": Failed to open the file\n", 26: Failed to open the file
) = 26
exit_group(0) = ?

Associated revisions

Revision 1120 (diff)
Added by Andreas Huggel over 14 years ago

Return a code != 0 from main() if an error occurred. Fixes #518.

History

Also available in: Atom PDF