Changes in uspace/app/bdsh/cmds/modules/mkdir/mkdir.c [d5c1051:8d2dd7f2] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/cmds/modules/mkdir/mkdir.c
rd5c1051 r8d2dd7f2 94 94 95 95 int ret = 0; 96 int rc;97 96 98 97 if (!create_parents) { 99 r c= vfs_link_path(path, KIND_DIRECTORY, NULL);100 if (r c!= EOK) {98 ret = vfs_link_path(path, KIND_DIRECTORY, NULL); 99 if (ret != EOK) { 101 100 cli_error(CL_EFAIL, "%s: could not create %s (%s)", 102 cmdname, path, str_error(r c));101 cmdname, path, str_error(ret)); 103 102 ret = 1; 104 103 } … … 136 135 path[prev_off] = 0; 137 136 138 r c= vfs_link_path(path, KIND_DIRECTORY, NULL);139 if (r c != EOK && rc!= EEXIST) {137 ret = vfs_link_path(path, KIND_DIRECTORY, NULL); 138 if (ret != EOK && ret != EEXIST) { 140 139 cli_error(CL_EFAIL, "%s: could not create %s (%s)", 141 cmdname, path, str_error(r c));140 cmdname, path, str_error(ret)); 142 141 ret = 1; 143 142 goto leave; … … 147 146 } 148 147 /* Create the final directory. */ 149 r c= vfs_link_path(path, KIND_DIRECTORY, NULL);150 if (r c!= EOK) {148 ret = vfs_link_path(path, KIND_DIRECTORY, NULL); 149 if (ret != EOK) { 151 150 cli_error(CL_EFAIL, "%s: could not create %s (%s)", 152 cmdname, path, str_error(r c));151 cmdname, path, str_error(ret)); 153 152 ret = 1; 154 153 }
Note:
See TracChangeset
for help on using the changeset viewer.