{
fd_set readfds;
struct timeval timeval;
+static int stdin_isatty=-1;
/* 'uri' may be NULL */
abort_msg_printed=TRUE;
}
- if (isatty(0)) {
+ if (stdin_isatty==-1)
+ stdin_isatty=isatty(0);
+ if (stdin_isatty>0) {
FD_ZERO(&readfds);
FD_SET(0,&readfds);
timeval.tv_sec=0;
g_return_if_fail(type!=NULL);
g_return_if_fail(module_available!=NULL);
g_return_if_fail(module_available->module!=NULL);
- g_return_if_fail(!strcmp(type,module_available->module->type));
+ g_return_if_fail(!strcmp((const char *)type,(const char *)module_available->module->type));
g_return_if_fail(param!=NULL);
if (param->do_print)
print_ui_line_module_available(module_available);
- /**/ if (!strcmp(type,"ntoskrnl.exe"))
+ /**/ if (!strcmp((const char *)type,"ntoskrnl.exe"))
param->ntoskrnl_exe_found=TRUE;
- else if (!strcmp(type,"ntfs.sys"))
+ else if (!strcmp((const char *)type,"ntfs.sys"))
param->ntfs_sys_found=TRUE;
}
while (!all_modules_found) {
char *line;
- if (ui_line_interactive_ask(_("Fully scan all directories of your local disks?")))
+ if (ui_line_interactive_ask(_(
+ "Detection of language localized MS-Windows drivers is missing."
+ " You may need to copy localized ntfs.sys and ntoskrnl.exe to /var/lib/captive/ by cp(1) command;"
+ " contact me for their proper identification, please.\n"
+ "Fully scan all directories of your local disks?")))
scan_disks();
if (!all_modules_found)
if (!uri)
printf(_("Error paring URI: %s"),line);
else {
- mod_uri_load(uri);
+ mod_uri_load_base_reporting(uri);
gnome_vfs_uri_unref(uri);
}
free(line);