X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=server-src%2Flist_dir.c;h=a909067e64be4db1283e705227a15afcb58a4387;hb=HEAD;hp=060f07f8e44dd2eccbf1033be75c101f4863f90c;hpb=cdbbeef9cde260e429854dd313bc0bf7560e1e24;p=debian%2Famanda diff --git a/server-src/list_dir.c b/server-src/list_dir.c index 060f07f..a909067 100644 --- 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 + * Copyright (c) 2007-2012 Zmanda, Inc. All Rights Reserved. * 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 */ } - 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)