Bug #518

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

Added by Daniel J Blueman almost 10 years ago. Updated over 8 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Andreas Huggel% Done:

0%

Category:miscellaneous
Target version:0.15

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
Added by Andreas Huggel almost 10 years ago

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

History

Also available in: Atom PDF

Redmine Appliance - Powered by TurnKey Linux