lsflib/src/md5recursive.c
changeset 150 75133486ba7e
parent 136 d82f65e902d0
child 158 2cddd4d26139
equal deleted inserted replaced
149:5acf77b9b7a0 150:75133486ba7e
    36         list = malloc (strlen (root) + 1 + strlen (entry->d_name) + 1);
    36         list = malloc (strlen (root) + 1 + strlen (entry->d_name) + 1);
    37         sprintf (list, "%s/%s", root, entry->d_name);
    37         sprintf (list, "%s/%s", root, entry->d_name);
    38 
    38 
    39         if (isDir (list)) {
    39         if (isDir (list)) {
    40             fprintf (stderr, "Directory: %s\n", list);
    40             fprintf (stderr, "Directory: %s\n", list);
       
    41 
    41             if (recursive) {
    42             if (recursive) {
    42                 md5recursive (list, recursive);
    43                 md5recursive (list, recursive);
    43             }
    44             }
    44             free (list);
    45             free (list);
    45             continue;
    46             continue;