Changes in uspace/app/redir/redir.c [b7fd2a0:8d2dd7f2] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/redir/redir.c
rb7fd2a0 r8d2dd7f2 59 59 *stream = NULL; 60 60 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) 64 63 return; 65 64 66 65 if (oldfd != fd) { 67 int newfd; 68 if (vfs_clone(oldfd, fd, false, &newfd) != EOK) 66 if (vfs_clone(oldfd, fd, false) != fd) 69 67 return; 70 68 71 assert(newfd == fd);72 73 69 if (vfs_put(oldfd)) 74 70 return; … … 82 78 const char **args; 83 79 task_id_t id = 0; 84 errno_t rc;80 int rc; 85 81 86 82 args = (const char **) calloc(argc + 1, sizeof(char *));
Note:
See TracChangeset
for help on using the changeset viewer.