Changeset 2525 in MondoRescue
- Timestamp:
- Jan 7, 2010, 5:45:43 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.9/mondo/src/common/libmondo-devices.c
r2501 r2525 1947 1947 char *not_mounted_on_dsf = NULL; 1948 1948 char token_chars[] =" \t\r\f\a\0\n"; 1949 char *tmp = NULL; 1950 char *tmp1 = NULL; 1949 1951 1950 1952 while ((token = mr_strtok(pathlist, token_chars, &lastpos)) != NULL) { … … 1990 1992 /* A device special file was not passed in. Process it as a path. */ 1991 1993 case -1: 1994 /* we need to add a space after token to be sure our strstr test works correctly */ 1995 mr_asprintf(&tmp1,"%s ",token); 1992 1996 if (mode == 'E') { 1993 1997 /* Add the token if not already in the list */ 1994 if (strstr(bkpinfo->exclude_paths,token) == NULL) { 1998 mr_asprintf(&tmp,"%s ",bkpinfo->exclude_paths); 1999 if (strstr(tmp,tmp1) == NULL) { 1995 2000 strcat(bkpinfo->exclude_paths, " "); 1996 strcat(bkpinfo->exclude_paths, token); 1997 strcat(bkpinfo->exclude_paths, " "); 2001 strcat(bkpinfo->exclude_paths, tmp1); 1998 2002 } 1999 2003 } else { 2000 2004 /* Add the token if not already in the list */ 2001 if (strstr(bkpinfo->include_paths,token) == NULL) { 2005 mr_asprintf(&tmp,"%s ",bkpinfo->include_paths); 2006 if (strstr(tmp,tmp1) == NULL) { 2002 2007 strcat(bkpinfo->include_paths, " "); 2003 strcat(bkpinfo->include_paths, token); 2004 strcat(bkpinfo->include_paths, " "); 2005 } 2006 } 2008 strcat(bkpinfo->include_paths, tmp1); 2009 } 2010 } 2011 mr_free(tmp); 2012 mr_free(tmp1); 2007 2013 break; 2008 2014 }
Note:
See TracChangeset
for help on using the changeset viewer.