Skip to content

Commit a90561d

Browse files
committed
PhotoRec: Make "Continue previous session" give output after receiving Y
Close cgsecurity#35
1 parent 1b78f38 commit a90561d

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ AC_INIT([testdisk],[7.1-WIP],[[email protected]])
66
AC_LANG(C)
77
sinclude(acx_pthread.m4)
88
sinclude(mkdir.m4)
9-
TESTDISKDATE="July 2017"
9+
TESTDISKDATE="November 2017"
1010
AC_SUBST(TESTDISKDATE)
1111
AC_DEFINE_UNQUOTED([TESTDISKDATE],"$TESTDISKDATE",[Date of release])
1212
AC_CONFIG_AUX_DIR(config)

src/pdiskseln.c

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,21 @@ int do_curses_photorec(struct ph_param *params, struct ph_options *options, cons
278278
#endif
279279
)
280280
{
281-
/* yes */
281+
#ifdef HAVE_NCURSES
282+
{
283+
va_list ap;
284+
int res;
285+
WINDOW *window=newwin(LINES, COLS, 0, 0); /* full screen */
286+
aff_copy(window);
287+
mvwaddstr(window,5,0,"Resuming the recovery. Please wait...");
288+
wrefresh(window);
289+
delwin(window);
290+
(void) clearok(stdscr, TRUE);
291+
#ifdef HAVE_TOUCHWIN
292+
touchwin(stdscr);
293+
#endif
294+
}
295+
#endif
282296
params->cmd_run=saved_cmd;
283297
params->cmd_device=saved_device;
284298
}

0 commit comments

Comments
 (0)