Changeset 6e5562a in mainline for uspace/app/bdsh/cmds/modules/cp/cp.c
- Timestamp:
- 2017-03-31T19:57:38Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update
- Children:
- 80743a1
- Parents:
- a56cef9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/cmds/modules/cp/cp.c
ra56cef9 r6e5562a 36 36 #include <str.h> 37 37 #include <fcntl.h> 38 #include <sys/stat.h>39 38 #include <vfs/vfs.h> 40 39 #include <dirent.h> … … 296 295 merge_paths(dest_path, PATH_MAX, src_dirname); 297 296 298 if ( mkdir(dest_path, 0) != 0) {297 if (vfs_link_path(dest_path, KIND_DIRECTORY) != EOK) { 299 298 printf("Unable to create " 300 299 "dest directory %s\n", dest_path); … … 310 309 * e.g. cp -r /src /data/new_dir_src 311 310 */ 312 if ( mkdir(dest_path, 0) != 0) {311 if (vfs_link_path(dest_path, KIND_DIRECTORY) != EOK) { 313 312 printf("Unable to create " 314 313 "dest directory %s\n", dest_path);
Note:
See TracChangeset
for help on using the changeset viewer.