projects
/
debian
/
amanda
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lintian doesn't like orphan packages with uploaders...
[debian/amanda]
/
server-src
/
list_dir.c
diff --git
a/server-src/list_dir.c
b/server-src/list_dir.c
index 060f07f8e44dd2eccbf1033be75c101f4863f90c..a909067e64be4db1283e705227a15afcb58a4387 100644
(file)
--- a/
server-src/list_dir.c
+++ b/
server-src/list_dir.c
@@
-1,6
+1,7
@@
/*
* Amanda, The Advanced Maryland Automatic Network Disk Archiver
* Copyright (c) 1991-1998 University of Maryland at College Park
/*
* 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
* All Rights Reserved.
*
* Permission to use, copy, modify, distribute, and sell this software and its
@@
-89,8
+90,10
@@
add_dir_list_item(
return 0; /* added */
}
return 0; /* added */
}
- if(strcmp(path,dir_last->path) == 0)
+ if (strcmp(path, "/") != 0 &&
+ strcmp(path, dir_last->path) == 0) {
return 0; /* found */
return 0; /* found */
+ }
/* add at head of list */
if(strcmp(path,dir_list->path) < 0)
/* add at head of list */
if(strcmp(path,dir_list->path) < 0)