Imported Upstream version 3.3.0
[debian/amanda] / server-src / list_dir.c
index 060f07f8e44dd2eccbf1033be75c101f4863f90c..283141192aa2ebe9e16f63a03904f73b9b0a59f4 100644 (file)
@@ -89,8 +89,10 @@ add_dir_list_item(
        return 0; /* added */
     }
 
-    if(strcmp(path,dir_last->path) == 0)
+    if (strcmp(path, "/") != 0 &&
+       strcmp(path, dir_last->path) == 0) {
        return 0; /* found */
+    }
 
     /* add at head of list */
     if(strcmp(path,dir_list->path) < 0)