X-Git-Url: https://git.gag.com/?a=blobdiff_plain;ds=sidebyside;f=server-src%2Flist_dir.c;h=283141192aa2ebe9e16f63a03904f73b9b0a59f4;hb=cd0b924f27312d57bd42f6c4fae2b795139e2d0b;hp=060f07f8e44dd2eccbf1033be75c101f4863f90c;hpb=011a59f5a54864108a16af570a6b287410597cc2;p=debian%2Famanda diff --git a/server-src/list_dir.c b/server-src/list_dir.c index 060f07f..2831411 100644 --- a/server-src/list_dir.c +++ b/server-src/list_dir.c @@ -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)