Changeset 23a0368 in mainline for uspace/app/bdsh/cmds/modules/cp/cp.c
- Timestamp:
- 2017-03-30T19:52:23Z (7 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/cp/cp.c
rb5b5d84 r23a0368 37 37 #include <fcntl.h> 38 38 #include <sys/stat.h> 39 #include <vfs/vfs.h> 39 40 #include <dirent.h> 40 41 #include "config.h" … … 83 84 struct stat s; 84 85 85 int r = stat(path, &s);86 87 if (r != 0)86 int r = vfs_stat_path(path, &s); 87 88 if (r != EOK) 88 89 return TYPE_NONE; 89 90 else if (s.is_directory) … … 341 342 342 343 /* Check if we are copying a directory into itself */ 343 stat(src_dent, &src_s);344 stat(dest_path, &dest_s);344 vfs_stat_path(src_dent, &src_s); 345 vfs_stat_path(dest_path, &dest_s); 345 346 346 347 if (dest_s.index == src_s.index && … … 394 395 } 395 396 396 if ( fstat(fd1, &st) != EOK) {397 if (vfs_stat(fd1, &st) != EOK) { 397 398 printf("Unable to fstat %d\n", fd1); 398 399 close(fd1);
Note:
See TracChangeset
for help on using the changeset viewer.