Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/redir/redir.c

    rb7fd2a0 r8d2dd7f2  
    5959        *stream = NULL;
    6060       
    61         int oldfd;
    62         errno_t rc = vfs_lookup_open(path, WALK_REGULAR | flags, mode, &oldfd);
    63         if (rc != EOK)
     61        int oldfd = vfs_lookup_open(path, WALK_REGULAR | flags, mode);
     62        if (oldfd < 0)
    6463                return;
    6564       
    6665        if (oldfd != fd) {
    67                 int newfd;
    68                 if (vfs_clone(oldfd, fd, false, &newfd) != EOK)
     66                if (vfs_clone(oldfd, fd, false) != fd)
    6967                        return;
    7068               
    71                 assert(newfd == fd);
    72 
    7369                if (vfs_put(oldfd))
    7470                        return;
     
    8278        const char **args;
    8379        task_id_t id = 0;
    84         errno_t rc;
     80        int rc;
    8581
    8682        args = (const char **) calloc(argc + 1, sizeof(char *));
Note: See TracChangeset for help on using the changeset viewer.