Changeset 3294 in MondoRescue for branches/3.2/mondo/src
- Timestamp:
- Jun 3, 2014, 8:20:52 AM (11 years ago)
- Location:
- branches/3.2/mondo/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mondo/src/common/libmondo-archive.c
r3293 r3294 841 841 6=\"%s\" 7=%ld 8=\"%s\" 9=\"%s\" 10=\"%s\" \ 842 842 11=\"%s\" 12=%s 13=%ld 14=\"%s\" 15=\"%s\" 16=\"%s\" 17=\"%s\" 18=%ld 19=%d",*/ 843 mr_asprintf(command, "mindi %s --custom %s %s/images '%s' '%s' '%s' %ld '%s' '%s' '%s' '%s' %s %ld '%s' '%s' '%s' '%s' %ld %d '%s' '%s' 2>&1 > %s", 843 mr_asprintf(command, 844 "mindi %s --custom %s %s/images '%s' '%s' '%s' '%ld' '%s' '%s' '%s' '%s' '%s' '%ld' '%s' '%s' '%s' '%s' '%ld' '%d' '%s' '%s' 2>&1 > %s", 845 // 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 23 844 846 tmp2, 845 847 bkpinfo->tmpdir, // parameter #2 … … 864 866 use_lzma_sz, // parameter #20 (STRING) 865 867 value, // parameter #21 (STRING) 866 MONDO_LOGFILE ,// redirect to log file868 MONDO_LOGFILE // redirect to log file 867 869 ); 868 870 -
branches/3.2/mondo/src/lib/mr_conf.c
r3185 r3294 4 4 * 5 5 * Based on the work done by Anton (c)2002-2004 Anton Kulchitsky mailto:anton@kulchitsky.org 6 * Code (c)2006 Bruno Cornec <bruno@mondorescue.org>6 * Code (c)2006-2014 Bruno Cornec <bruno@mondorescue.org> 7 7 * 8 8 * Main file of mr_conf : a very small and simple … … 174 174 p += strlen(field_name); 175 175 while ((*p != '\n') && (*p != '\0') && (*p != '=')) { 176 176 p++; 177 177 } 178 178 if (*p != '=') { -
branches/3.2/mondo/src/lib/mr_mem.c
r3292 r3294 77 77 /* free a variable which should be already free */ 78 78 mr_msg_int(1,line,file,"mr_getline_ found a non freed variable here"); 79 mr_free_int( lineptr,line,file);79 mr_free_int((void **)lineptr,line,file); 80 80 } 81 81 ret = getline(lineptr,&n,fd); … … 86 86 /* We reached end of file, allocating empty string */ 87 87 if (ret == -1) { 88 mr_free_int( lineptr,line,file);88 mr_free_int((void **)lineptr,line,file); 89 89 mr_asprintf_int(lineptr,line,file,""); 90 90 } -
branches/3.2/mondo/src/lib/mr_str.c
r3194 r3294 194 194 } 195 195 196 char *mr_str_substitute(const char *in, const char *token, const char *subst) { 197 198 char *output = NULL; 199 char *tmp = NULL; 200 int i = 0; 201 202 mr_asprintf(output, "%s", in); 203 tmp = strstr(output, token); 204 if (tmp == NULL) { 205 // token not found returning initial string unmodified 206 return(output); 207 } 208 // token found end string here for now 209 *tmp = '\0'; 210 211 // Add subst content to the string 212 mr_strcat(output,subst); 213 214 // now add the rest of in 215 tmp = strstr(in, token); 216 for (; i < strlen(token) ; i++) { 217 tmp++; 218 } 219 mr_strcat(output,tmp); 220 return(output); 221 } 222 196 223 197 224 /*
Note:
See TracChangeset
for help on using the changeset viewer.