Changeset 23a0368 in mainline for uspace/app/bdsh/cmds/modules/ls/ls.c
- Timestamp:
- 2017-03-30T19:52:23Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ae7bfbbd
- Parents:
- b5b5d84
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/cmds/modules/ls/ls.c
rb5b5d84 r23a0368 39 39 #include <getopt.h> 40 40 #include <sys/types.h> 41 #include < sys/stat.h>41 #include <vfs/vfs.h> 42 42 #include <str.h> 43 43 #include <sort.h> … … 185 185 buff[len] = '\0'; 186 186 187 rc = stat(buff, &tosort[nbdirs++].s);188 if (rc != 0) {187 rc = vfs_stat_path(buff, &tosort[nbdirs++].s); 188 if (rc != EOK) { 189 189 printf("ls: skipping bogus node %s\n", buff); 190 printf("error=%d\n", errno);190 printf("error=%d\n", rc); 191 191 goto out; 192 192 } … … 315 315 static unsigned int ls_scope(const char *path, struct dir_elem_t *de) 316 316 { 317 if ( stat(path, &de->s) != 0) {317 if (vfs_stat_path(path, &de->s) != EOK) { 318 318 cli_error(CL_ENOENT, "%s", path); 319 319 return LS_BOGUS;
Note:
See TracChangeset
for help on using the changeset viewer.