Changes in uspace/app/bdsh/cmds/modules/mkdir/mkdir.c [8d2dd7f2:d5c1051] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/cmds/modules/mkdir/mkdir.c
r8d2dd7f2 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.