[Integrit-users] Exit code bug
Brought to you by:
ecashin
|
From: Thorsten K. <tho...@th...> - 2007-05-18 23:55:04
|
Hi,
Integrit 4 returns the wrong exit code (0) when a file is missing.
Integrit returns 0 when the file is missing or when not missing
Integrit returns 1 when the file has changed.
Obviously it doesn't (or shouldn't matter) whether a file has changed
or has completely vanished. From a "file integrity checker" point of
view both cases should be "file has changed" scenarios and should
return "1".
This makes it impossible to query changes from a batch script via exit
codes or I'd have to use the crude hack that was suggested in [1]
if [ "`wc -l $filename | awk '{ print $1 }'`" -gt 0 ]; then
Will this be fixed?!
Thorsten
[1] http://sourceforge.net/mailarchive/forum.php?thread_name=
10110260958.ZM293014%40gandalf.sh.rohmhaas.com&forum_name=integrit-
users
|