You should probably modify OPT_info to behave the same way
(return -1; -> return 1;)
Otherwise trivial, push.
On 25.07.2011 16:49, Martin Milata wrote:
This should fix bug #300.
---
src/cli/cli.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/cli/cli.c b/src/cli/cli.c
index 49484c3..e356f5e 100644
--- a/src/cli/cli.c
+++ b/src/cli/cli.c
@@ -322,7 +322,7 @@ int main(int argc, char** argv)
{
struct dump_dir *dd = dd_opendir(dump_dir_name, DD_OPEN_READONLY);
if (!dd)
- break;
+ return 1;
int readonly = !dd->locked;
dd_close(dd);
if (readonly)