Re: [Integrit-users] Exit code bug
Brought to you by:
ecashin
From: Yuri D'E. <wa...@us...> - 2007-05-19 23:50:49
|
In article <f2le4r$6pa$1...@se...>, Thorsten Kampe <tho...@th...> wrote: > 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". Can you provide a sample configuration an the steps needed to reproduce the problem? > 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?! Integrit 4 has clear exit status codes. See the "Exit status" section in the info integrit manual. Any difference in behavior are broken and will be fixed. |