X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=server-src%2Fdiskfile.c;fp=server-src%2Fdiskfile.c;h=d8e11dce165c1669eb061945be621eda64deb5e6;hb=691567b16c13087b31ee4c2b6d038e57872fae82;hp=544346a66e7d307d461cf005fe1fe908a834fd46;hpb=cc7d7b45afc706099acf7ff2490ec5667d370651;p=debian%2Famanda diff --git a/server-src/diskfile.c b/server-src/diskfile.c index 544346a..d8e11dc 100644 --- a/server-src/diskfile.c +++ b/server-src/diskfile.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 @@ -513,7 +514,7 @@ parse_diskline( amfree(hostname); return (-1); } - if ((dtype = lookup_dumptype(dumptype)) == NULL) { + if (lookup_dumptype(dumptype) == NULL) { diskdevice = dumptype; skip_whitespace(s, ch); if(ch == '\0' || ch == '#') { @@ -1851,6 +1852,7 @@ disable_skip_disk( char * match_disklist( disklist_t *origqp, + gboolean exact_match, int sargc, char ** sargv) { @@ -1862,10 +1864,24 @@ match_disklist( int prev_match; disk_t *dp_skip; disk_t *dp; + char **new_sargv = NULL; if(sargc <= 0) return NULL; + if (exact_match) { + new_sargv = g_new0(char *, sargc+1); + for (i=0; i