Subversion Repositories HelenOS

Rev

Rev 3813 | Rev 4266 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3813 Rev 4264
Line 147... Line 147...
147
    }
147
    }
148
 
148
 
149
    while (dirs[i] != NULL) {
149
    while (dirs[i] != NULL) {
150
        /* Sometimes make or scripts conjoin odd paths. Account for something
150
        /* Sometimes make or scripts conjoin odd paths. Account for something
151
         * like this: ../../foo/bar/../foo/foofoo/./bar */
151
         * like this: ../../foo/bar/../foo/foofoo/./bar */
152
        if (!strcmp(dirs[i], "..") || !strcmp(dirs[i], ".")) {
152
        if (!str_cmp(dirs[i], "..") || !str_cmp(dirs[i], ".")) {
153
            if (0 != (chdir(dirs[i]))) {
153
            if (0 != (chdir(dirs[i]))) {
154
                cli_error(CL_EFAIL, "%s: impossible path: %s",
154
                cli_error(CL_EFAIL, "%s: impossible path: %s",
155
                    cmdname, path);
155
                    cmdname, path);
156
                ret ++;
156
                ret ++;
157
                goto finit;
157
                goto finit;