Changeset 2309 in MondoRescue
- Timestamp:
- Jul 28, 2009, 2:14:23 AM (15 years ago)
- Location:
- branches/2.2.9
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.9/mondo/src/common/libmondo-archive.c
r2290 r2309 867 867 log_msg(1, "lines_in_filelist = %ld", lines_in_filelist); 868 868 869 mr_asprintf(&command,870 869 /* "mindi --custom 2=%s 3=%s/images 4=\"%s\" 5=\"%s\" \ 871 870 6=\"%s\" 7=%ld 8=\"%s\" 9=\"%s\" 10=\"%s\" \ 872 871 11=\"%s\" 12=%s 13=%ld 14=\"%s\" 15=\"%s\" 16=\"%s\" 17=\"%s\" 18=%ld 19=%d",*/ 873 872 mr_asprintf(&command, "mindi %s --custom %s %s/images '%s' '%s' \ 874 873 '%s' %ld '%s' '%s' '%s' \ 875 874 '%s' %s %ld '%s' '%s' '%s' '%s' %ld %d '%s'", tmp2, bkpinfo->tmpdir, // parameter #2 -
branches/2.2.9/mondo/src/common/libmondo-cli.c
r2290 r2309 1175 1175 1176 1176 if (flag_set['b']) { 1177 mr_asprintf(&psz, flag_val['b']);1177 mr_asprintf(&psz, "%s", flag_val['b']); 1178 1178 log_msg(1, "psz = '%s'", psz); 1179 1179 if (psz[strlen(psz) - 1] == 'k') { … … 1573 1573 case SIGKILL: 1574 1574 mr_asprintf(&tmp, "SIGKILL"); 1575 mr_asprintf(&tmp2, 1576 "I seriously have no clue how this signal even got to me. Something's wrong with your system."); 1575 mr_asprintf(&tmp2, "I seriously have no clue how this signal even got to me. Something's wrong with your system."); 1577 1576 break; 1578 1577 case SIGTERM: … … 1586 1585 case SIGSEGV: 1587 1586 mr_asprintf(&tmp, "SIGSEGV"); 1588 mr_asprintf(&tmp2, 1589 "Internal programming error. Please send a backtrace as well as your log."); 1587 mr_asprintf(&tmp2, "Internal programming error. Please send a backtrace as well as your log."); 1590 1588 break; 1591 1589 case SIGPIPE: -
branches/2.2.9/tools/quality
r2213 r2309 28 28 29 29 # How many sprintf/strcat/strcpy vs asprintf are they 30 for s in asprintf mr_asprintf sprintf s trcat strcpy strncpy fgets malloc mr_malloc malloc_string getline mr_getline MAX_STR_LEN getcwd goto free mr_free paranoid_free; do31 echo "mon odrescue $s usage : "30 for s in asprintf mr_asprintf sprintf snprintf strcat strcpy strncpy fgets malloc mr_malloc malloc_string getline mr_getline MAX_STR_LEN getcwd goto free mr_free paranoid_free paranoid_system mr_system assert; do 31 echo "mondorescue $s usage : " 32 32 tot=0 33 33 for i in `find . -name '*.c' -o -name '*.h' | egrep -v '\.svn|/\*|monitas|mindi-busybox' | xargs grep -r -c -w $s | egrep -v ":0$"`; do … … 40 40 echo " " 41 41 echo "Qualimetry: " 42 find . -name '*.c' -o -name '*.h' | egrep -v '\.svn|/\*|monitas|/\*|mindi-busybox' | xargs grep -rw asprintf | egrep -v '/\*' | egrep -v 'asprintf\(&' > /tmp/mondo.quality42 pbg -w asprintf | grep -vE 'monitas|mindi-busybox|quality|/\*|asprintf\(&' > /tmp/mondo.quality 43 43 cat /tmp/mondo.quality 44 echo "mon odrescue uses : `cat /tmp/mondo.quality | wc -l` asprintf without &"45 find . -name '*.c' -o -name '*.h' | egrep -v '\.svn|/\*|monitas|/\*|mindi-busybox' | xargs grep -rw getline | egrep -v '/\*' | egrep -v 'getline\(&' > /tmp/mondo.quality44 echo "mondorescue uses : `cat /tmp/mondo.quality | wc -l` asprintf without &" 45 pbg -w getline | grep -vE 'monitas|mindi-busybox|quality|/\*|getline\(&' > /tmp/mondo.quality 46 46 cat /tmp/mondo.quality 47 echo "monodrescue uses : `cat /tmp/mondo.quality | wc -l` getline without &" 48 47 echo "mondorescue uses : `cat /tmp/mondo.quality | wc -l` getline without &" 48 pbg mr_asprintf | grep -vE '"|FNAME|ISOFS|syscall_sprintf|mr_mem|quality' > /tmp/mondo.quality 49 cat /tmp/mondo.quality 50 echo "mondorescue uses : `cat /tmp/mondo.quality | wc -l` mr_asprintf without \"" 49 51 echo " " 50 52 echo "Splint: "
Note:
See TracChangeset
for help on using the changeset viewer.