Changeset d5c1051 in mainline for uspace/app/bdsh/cmds/modules/mkdir/mkdir.c
- Timestamp:
- 2017-12-20T22:25:34Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 39b54fe
- Parents:
- 8610c2c
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2017-12-20 22:22:29)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2017-12-20 22:25:34)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/cmds/modules/mkdir/mkdir.c
r8610c2c rd5c1051 94 94 95 95 int ret = 0; 96 int rc; 96 97 97 98 if (!create_parents) { 98 r et= vfs_link_path(path, KIND_DIRECTORY, NULL);99 if (r et!= EOK) {99 rc = vfs_link_path(path, KIND_DIRECTORY, NULL); 100 if (rc != EOK) { 100 101 cli_error(CL_EFAIL, "%s: could not create %s (%s)", 101 cmdname, path, str_error(r et));102 cmdname, path, str_error(rc)); 102 103 ret = 1; 103 104 } … … 135 136 path[prev_off] = 0; 136 137 137 r et= vfs_link_path(path, KIND_DIRECTORY, NULL);138 if (r et != EOK && ret!= EEXIST) {138 rc = vfs_link_path(path, KIND_DIRECTORY, NULL); 139 if (rc != EOK && rc != EEXIST) { 139 140 cli_error(CL_EFAIL, "%s: could not create %s (%s)", 140 cmdname, path, str_error(r et));141 cmdname, path, str_error(rc)); 141 142 ret = 1; 142 143 goto leave; … … 146 147 } 147 148 /* Create the final directory. */ 148 r et= vfs_link_path(path, KIND_DIRECTORY, NULL);149 if (r et!= EOK) {149 rc = vfs_link_path(path, KIND_DIRECTORY, NULL); 150 if (rc != EOK) { 150 151 cli_error(CL_EFAIL, "%s: could not create %s (%s)", 151 cmdname, path, str_error(r et));152 cmdname, path, str_error(rc)); 152 153 ret = 1; 153 154 }
Note:
See TracChangeset
for help on using the changeset viewer.