X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=application-src%2Famgtar.c;fp=application-src%2Famgtar.c;h=285b05c3fb14c40fcf418cd4bddf22abe8893a78;hb=691567b16c13087b31ee4c2b6d038e57872fae82;hp=47103ad45a466f0f248ce5ce47944e0c518b851b;hpb=cc7d7b45afc706099acf7ff2490ec5667d370651;p=debian%2Famanda diff --git a/application-src/amgtar.c b/application-src/amgtar.c index 47103ad..285b05c 100644 --- a/application-src/amgtar.c +++ b/application-src/amgtar.c @@ -1,6 +1,7 @@ /* * Amanda, The Advanced Maryland Automatic Network Disk Archiver * Copyright (c) 1991-1998 University of Maryland at College Park + * Copyright (c) 2007-2012 Zmanda, Inc. All Rights Reserved. * All Rights Reserved. * * Permission to use, copy, modify, distribute, and sell this software and its @@ -361,7 +362,6 @@ main( /* parse argument */ command = argv[1]; - gnutar_listdir = stralloc(getconf_str(CNF_GNUTAR_LIST_DIR)); argument.config = NULL; argument.host = NULL; argument.message = 0; @@ -532,6 +532,10 @@ main( g_critical(_("errors processing config file")); } + if (!gnutar_listdir) { + gnutar_listdir = g_strdup(getconf_str(CNF_GNUTAR_LIST_DIR)); + } + re_table = build_re_table(init_re_table, normal_message, ignore_message, strange_message);