Changes in uspace/app/redir/redir.c [f77c1c9:8d2dd7f2] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/redir/redir.c
rf77c1c9 r8d2dd7f2 59 59 *stream = NULL; 60 60 61 int oldfd; 62 int 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;
Note:
See TracChangeset
for help on using the changeset viewer.