+ char *myprogram = program;
+
+ if(strcmp(myprogram,"CALCSIZE") == 0) {
+ int nb_exclude = 0;
+ int nb_include = 0;
+ char *file_exclude = NULL;
+ char *file_include = NULL;
+
+ if(options->exclude_file) nb_exclude += options->exclude_file->nb_element;
+ if(options->exclude_list) nb_exclude += options->exclude_list->nb_element;
+ if(options->include_file) nb_include += options->include_file->nb_element;
+ if(options->include_list) nb_include += options->include_list->nb_element;
+
+ if(nb_exclude > 0) file_exclude = build_exclude(disk, amdevice, options, 1);
+ if(nb_include > 0) file_include = build_include(disk, amdevice, options, 1);
+
+ amfree(file_exclude);
+ amfree(file_include);
+
+ need_calcsize=1;
+ if (calcprog == NULL) {
+ printf("ERROR [no program name for calcsize]\n");
+ } else {
+ myprogram = calcprog;
+ }
+ }
+
+ if(strcmp(myprogram,"GNUTAR") == 0) {