X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=client-src%2Fselfcheck.c;h=763ac323c535d8eb83c58d8a301122e5cc6b7b3e;hb=7906a3b9f861a26c6fd0423ca5232665d1b48caf;hp=416daf297d4e29de77478ca872f65b08fc127a60;hpb=afaa71b3866b46b082b6c895772e15b36d8865fe;p=debian%2Famanda diff --git a/client-src/selfcheck.c b/client-src/selfcheck.c index 416daf2..763ac32 100644 --- a/client-src/selfcheck.c +++ b/client-src/selfcheck.c @@ -447,7 +447,7 @@ check_options( #endif { need_vxdump=1; - if (dle->create-index) + if (dle->create_index) need_vxrestore=1; } else @@ -841,6 +841,7 @@ check_disk( } amfree(line); } + fclose(app_stderr); if (waitpid(application_api_pid, &status, 0) < 0) { err = vstrallocf(_("waitpid failed: %s"), strerror(errno)); @@ -1077,8 +1078,8 @@ check_overall(void) check_file(COMPRESS_PATH, X_OK); if (need_dump || need_xfsdump ) { - if (check_file_exist("/etc/dumpdates")) { - check_file("/etc/dumpdates", + if (check_file_exist("/var/lib/dumpdates")) { + check_file("/var/lib/dumpdates", #ifdef USE_RUNDUMP F_OK #else @@ -1088,15 +1089,15 @@ check_overall(void) } else { #ifndef USE_RUNDUMP if (access("/etc", R_OK|W_OK) == -1) { - g_printf(_("ERROR [dump will not be able to create the /etc/dumpdates file: %s]\n"), strerror(errno)); + g_printf(_("ERROR [dump will not be able to create the /var/lib/dumpdates file: %s]\n"), strerror(errno)); } #endif } } if (need_vdump) { - if (check_file_exist("/etc/vdumpdates")) { - check_file("/etc/vdumpdates", F_OK); + if (check_file_exist("/var/lib/vdumpdates")) { + check_file("/var/lib/vdumpdates", F_OK); } } @@ -1107,7 +1108,7 @@ check_overall(void) check_space(AMANDA_DBGDIR, (off_t)64); /* for amandad i/o */ #endif - check_space("/etc", (off_t)64); /* for /etc/dumpdates writing */ + check_space("/var/lib", (off_t)64); /* for /var/lib/dumpdates writing */ } static void