Ignore:
Timestamp:
May 5, 2009, 3:56:10 AM (15 years ago)
Author:
Bruno Cornec
Message:
  • Fix lack of formating (discovered by the new Mandriva build process, and adopted here as well as it's good practice).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.9/mondo/src/common/libmondo-filelist.c

    r2184 r2190  
    2626#include <errno.h>
    2727#include <stdio.h>
    28 
    29 
    30 /**
    31  * The maximum depth of directories to put in the skeleton filelist.
    32  * This is a balance between performance and a good progress indicator.
    33  */
    34 #define MAX_SKEL_DEPTH 3
    3528
    3629
     
    14061399        asprintf(&strtmp,
    14071400             "find %s -fstype mvfs -prune -o -fstype devpts -prune -o -fstype tmpfs -prune -o -fstype proc -prune -o -fstype sysfs -prune -o %s -type d -print > %s 2> /dev/null",
    1408              dir, MAX_SKEL_DEPTH, find_excludes, g_skeleton_filelist);
     1401             dir, find_excludes, g_skeleton_filelist);
    14091402#else
    14101403        // On BSD, for example, /sys is the kernel sources -- don't exclude
    14111404        asprintf(&strtmp,
    1412              "find %s -maxdepth %d -fstype mvfs -prune -o -path /proc -prune -o %s -type d -print > %s 2> /dev/null",
    1413                 dir, MAX_SKEL_DEPTH, find_excludes, g_skeleton_filelist);
     1405             "find %s -fstype mvfs -prune -o -path /proc -prune -o %s -type d -print > %s 2> /dev/null",
     1406                dir, find_excludes, g_skeleton_filelist);
    14141407#endif
    14151408        paranoid_free(find_excludes);
     
    14271420        log_msg(5, "entries = %ld", g_skeleton_entries);
    14281421        percentage = 0;
    1429     } else if (depth <= MAX_SKEL_DEPTH) // update evalcall form if appropriate
     1422    } else // update evalcall form if appropriate
    14301423    {
    14311424        sprintf(find_skeleton_marker,
     
    16501643        log_msg(2, "include_paths = '%s'", include_paths);
    16511644        log_msg(1, "Calculating filelist");
    1652         asprintf(&tmp2, call_program_and_get_last_line_of_output("mount | grep -Ew 'ntfs|ntfs-3g|fat|vfat|dos' | awk '{print $3}'"));
     1645        asprintf(&tmp2, "%s", call_program_and_get_last_line_of_output("mount | grep -Ew 'ntfs|ntfs-3g|fat|vfat|dos' | awk '{print $3}'"));
    16531646        if (strlen(tmp2) < 1) {
    16541647            asprintf(&tmp1," ");
     
    16571650            asprintf(&tmp1, "find %s -name '/win386.swp' -o -name '/hiberfil.sys' -o -name '/pagefile.sys' 2> /dev/null\n",tmp2);
    16581651            paranoid_free(tmp2);
    1659             asprintf(&tmp2, call_program_and_get_last_line_of_output(tmp1));
     1652            asprintf(&tmp2, "%s", call_program_and_get_last_line_of_output(tmp1));
    16601653            log_msg(2, "Found windows files: %s",tmp2);
    16611654        }
Note: See TracChangeset for help on using the changeset viewer.