/*
* 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
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)