Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/bdsh/cmds/modules/ls/ls.c

    rc878693 rc24b0dcb  
    4242#include <vfs/vfs.h>
    4343#include <str.h>
    44 #include <cap.h>
     44#include <capa.h>
    4545
    4646#include "ls.h"
     
    106106                }
    107107
    108                 cap_spec_t cap;
    109                 cap_from_blocks(de->s.size, 1, &cap);
    110                 cap_simplify(&cap);
     108                capa_spec_t capa;
     109                capa_from_blocks(de->s.size, 1, &capa);
     110                capa_simplify(&capa);
    111111
    112112                char *rptr;
    113                 errno_t rc = cap_format(&cap, &rptr);
     113                errno_t rc = capa_format(&capa, &rptr);
    114114                if (rc != EOK) {
    115115                        return rc;
     
    267267
    268268        /* Populate the directory list. */
    269         if (ls.recursive) {
     269        if (ls.recursive && nbdirs > 0) {
    270270                tmp = (struct dir_elem_t *) realloc(*dir_list_ptr,
    271271                    nbdirs * sizeof(struct dir_elem_t));
Note: See TracChangeset for help on using the changeset viewer.