diff options
Diffstat (limited to 'src/fr-command-7z.c')
-rw-r--r-- | src/fr-command-7z.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/fr-command-7z.c b/src/fr-command-7z.c index c3c66ab..4c5b03a 100644 --- a/src/fr-command-7z.c +++ b/src/fr-command-7z.c @@ -394,12 +394,29 @@ fr_command_7z_add (FrCommand *comm, } static void +process_line__delete (char *line, + gpointer data) +{ + FrCommand *comm = FR_COMMAND (data); + + if ((strstr (line, "Wrong password?") != NULL) + || (strstr (line, "Enter password") != NULL)) + { + password_required = TRUE; + } +} + +static void fr_command_7z_delete (FrCommand *comm, const char *from_file, GList *file_list) { GList *scan; + fr_process_set_out_line_func (comm->process, + process_line__delete, + comm); + fr_command_7z_begin_command (comm); fr_process_add_arg (comm->process, "d"); if (spd_support) fr_process_add_arg (comm->process, "-spd"); |