Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/bdsh/cmds/modules/mkdir/mkdir.c

    rb7fd2a0 r8d2dd7f2  
    9494
    9595        int ret = 0;
    96         errno_t rc;
    9796
    9897        if (!create_parents) {
    99                 rc = vfs_link_path(path, KIND_DIRECTORY, NULL);
    100                 if (rc != EOK) {
     98                ret = vfs_link_path(path, KIND_DIRECTORY, NULL);
     99                if (ret != EOK) {
    101100                        cli_error(CL_EFAIL, "%s: could not create %s (%s)",
    102                             cmdname, path, str_error(rc));
     101                            cmdname, path, str_error(ret));
    103102                        ret = 1;
    104103                }
     
    136135                        path[prev_off] = 0;
    137136
    138                         rc = vfs_link_path(path, KIND_DIRECTORY, NULL);
    139                         if (rc != EOK && rc != EEXIST) {
     137                        ret = vfs_link_path(path, KIND_DIRECTORY, NULL);
     138                        if (ret != EOK && ret != EEXIST) {
    140139                                cli_error(CL_EFAIL, "%s: could not create %s (%s)",
    141                                     cmdname, path, str_error(rc));
     140                                    cmdname, path, str_error(ret));
    142141                                ret = 1;
    143142                                goto leave;
     
    147146                }
    148147                /* Create the final directory. */
    149                 rc = vfs_link_path(path, KIND_DIRECTORY, NULL);
    150                 if (rc != EOK) {
     148                ret = vfs_link_path(path, KIND_DIRECTORY, NULL);
     149                if (ret != EOK) {
    151150                        cli_error(CL_EFAIL, "%s: could not create %s (%s)",
    152                             cmdname, path, str_error(rc));
     151                            cmdname, path, str_error(ret));
    153152                        ret = 1;
    154153                }
Note: See TracChangeset for help on using the changeset viewer.