diff options
author | Christophe Grenier <grenier@cgsecurity.org> | 2017-12-24 15:35:24 +0100 |
---|---|---|
committer | Christophe Grenier <grenier@cgsecurity.org> | 2017-12-24 15:35:24 +0100 |
commit | e1d86c408e1c3a248b86b13b517a0b52a48f3e4c (patch) | |
tree | e3e49aac5be1f75a55785a1fe423a4fb4fb02720 /src | |
parent | c8dc1b08693a6657c94b279e1c7b394630388025 (diff) |
PhotoRec: rename photorec.ses to photorec.se2 if session is not resumed
Diffstat (limited to 'src')
-rw-r--r-- | src/pdiskseln.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/pdiskseln.c b/src/pdiskseln.c index e462996..c00d65a 100644 --- a/src/pdiskseln.c +++ b/src/pdiskseln.c @@ -280,8 +280,6 @@ int do_curses_photorec(struct ph_param *params, struct ph_options *options, cons { #ifdef HAVE_NCURSES { - va_list ap; - int res; WINDOW *window=newwin(LINES, COLS, 0, 0); /* full screen */ aff_copy(window); mvwaddstr(window,5,0,"Resuming the recovery. Please wait..."); @@ -301,6 +299,7 @@ int do_curses_photorec(struct ph_param *params, struct ph_options *options, cons free(saved_device); free(saved_cmd); free_list_search_space(&list_search_space); + rename("photorec.ses", "photorec.se2"); } } if(params->cmd_device!=NULL && params->cmd_run!=NULL) |