projects
/
debian
/
amanda
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Imported Upstream version 2.5.2p1
[debian/amanda]
/
server-src
/
disk_history.c
diff --git
a/server-src/disk_history.c
b/server-src/disk_history.c
index 1e02f74225a8a575aa62d15fdd71b6f275ed34cd..4d26969381caaa756fb2e238e9570c10ce2f9290 100644
(file)
--- a/
server-src/disk_history.c
+++ b/
server-src/disk_history.c
@@
-43,6
+43,7
@@
clear_list(void)
{
this = item;
item = item->next;
{
this = item;
item = item->next;
+ amfree(this->hostname);
while(this->tapes != NULL) {
tapelist_t *tapes = this->tapes;
this->tapes = tapes->next;
while(this->tapes != NULL) {
tapelist_t *tapes = this->tapes;
this->tapes = tapes->next;
@@
-59,6
+60,7
@@
clear_list(void)
void
add_dump(
void
add_dump(
+ char * hostname,
char * date,
int level,
char * tape,
char * date,
int level,
char * tape,
@@
-78,6
+80,7
@@
add_dump(
if(partnum == -1) new->is_split = 0;
else new->is_split = 1;
new->tapes = NULL;
if(partnum == -1) new->is_split = 0;
else new->is_split = 1;
new->tapes = NULL;
+ new->hostname = stralloc(hostname);
if(new->tape[0] == '/')
isafile = 1; /* XXX kludgey, like this whole thing */
if(new->tape[0] == '/')
isafile = 1; /* XXX kludgey, like this whole thing */