summaryrefslogtreecommitdiffstats
path: root/src/psearchn.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2014-04-23 14:30:51 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2014-04-23 14:30:51 +0200
commit063a3ea0a15184d114c8ec6dfcee10b9e503705e (patch)
tree9ea5ca89eb3e9f9e5319dad11ab4e50334bbb012 /src/psearchn.c
parent0dc071793364508759977f3740ec3c7d0ed82db4 (diff)
PhotoRec: fix reggression, "stop" works again
Diffstat (limited to 'src/psearchn.c')
-rw-r--r--src/psearchn.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/psearchn.c b/src/psearchn.c
index 1d142d7..95cc1b0 100644
--- a/src/psearchn.c
+++ b/src/psearchn.c
@@ -437,6 +437,11 @@ pstatus_t photorec_aux(struct ph_param *params, const struct ph_options *options
session_save(list_search_space, params, options);
next_checkpoint=current_time+5*60;
}
+ if(ind_stop!=PSTATUS_OK)
+ {
+ log_info("PhotoRec has been stopped\n");
+ current_search_space=list_search_space;
+ }
}
}
}