Ignore:
File:
1 edited

Legend:

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

    rd5c1051 rd96d9bc  
    149149        }
    150150
    151         if (vfs_lookup(path, WALK_REGULAR, &fd) == EOK) {
     151        fd = vfs_lookup(path, WALK_REGULAR);
     152        if (fd >= 0) {
    152153                vfs_put(fd);
    153154                return RM_FILE;
     
    209210        rc = vfs_unlink_path(path);
    210211        if (rc == EOK)
    211                 return 0;
     212                return EOK;
    212213
    213214        cli_error(CL_ENOTSUP, "Can not remove %s", path);
Note: See TracChangeset for help on using the changeset viewer.