Changeset 368ee04 in mainline for uspace/app/bdsh/cmds/modules/mv/mv.c
- Timestamp:
- 2017-04-05T18:10:39Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 93ad8166
- Parents:
- 39f892a9 (diff), 2166728 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/cmds/modules/mv/mv.c
r39f892a9 r368ee04 30 30 #include <stdlib.h> 31 31 #include <errno.h> 32 #include <vfs/vfs.h> 32 33 #include "config.h" 33 34 #include "util.h" … … 59 60 } 60 61 61 rc = rename(argv[1], argv[2]);62 if (rc != 0) {62 rc = vfs_rename_path(argv[1], argv[2]); 63 if (rc != EOK) { 63 64 printf("Unable to rename %s to %s (error=%d)\n", 64 argv[1], argv[2], errno);65 argv[1], argv[2], rc); 65 66 return CMD_FAILURE; 66 67 }
Note:
See TracChangeset
for help on using the changeset viewer.