--- amanda-2.4.3.orig/common-src/debug.c 2002-11-04 20:37:54.000000000 -0500 +++ amanda-2.4.3/common-src/debug.c 2002-11-25 10:54:41.000000000 -0500 @@ -53,6 +53,7 @@ # define AMANDA_DBGDIR AMANDA_TMPDIR #endif +#ifdef DEBUG_CODE /* * Format and write a debug message to the process debug file. */ @@ -346,3 +347,4 @@ return s; } +#endif --- amanda-2.4.3.orig/client-src/client_util.c 2002-11-12 13:01:19.000000000 -0500 +++ amanda-2.4.3/client-src/client_util.c 2002-11-25 10:57:20.000000000 -0500 @@ -92,10 +92,10 @@ time(&curtime); diskname = sanitise_filename(disk); - dbgdir = stralloc2(AMANDA_DBGDIR, "/"); - if((d = opendir(AMANDA_DBGDIR)) == NULL) { + dbgdir = stralloc2(AMANDA_TMPDIR, "/"); + if((d = opendir(AMANDA_TMPDIR)) == NULL) { error("open debug directory \"%s\": %s", - AMANDA_DBGDIR, strerror(errno)); + AMANDA_TMPDIR, strerror(errno)); } test_name = get_name(diskname, exin, curtime - (AMANDA_DEBUG_DAYS * 24 * 60 * 60), 0);