/*
* 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
tape_t *tp = NULL;
char *s, *s1;
int ch;
+ char *cline;
*status = 0;
return NULL;
}
+ cline = g_strdup(line);
tp = g_new0(tape_t, 1);
s1 = s - 1;
}
if (*(s - 1) == '#') {
tp->comment = stralloc(s); /* skip leading '#' */
+ } else if (*(s-1)) {
+ g_critical("Bogus line in the tapelist file: %s", cline);
}
return tp;