X-Git-Url: https://git.gag.com/?a=blobdiff_plain;ds=sidebyside;f=application-src%2Famgtar.c;fp=application-src%2Famgtar.c;h=285b05c3fb14c40fcf418cd4bddf22abe8893a78;hb=d28952249e392eb31bc8eecc53f6c477f30c617b;hp=47103ad45a466f0f248ce5ce47944e0c518b851b;hpb=949b8910a5e23c4285d0b1aedacfc82a14dc97a5;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);