Changes in uspace/app/getterm/getterm.c [f77c1c9:8d2dd7f2] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/getterm/getterm.c
rf77c1c9 r8d2dd7f2 65 65 *stream = NULL; 66 66 67 int oldfd; 68 int rc = vfs_lookup_open(path, WALK_REGULAR, mode, &oldfd); 69 if (rc != EOK) 67 int oldfd = vfs_lookup_open(path, WALK_REGULAR, mode); 68 if (oldfd < 0) 70 69 return; 71 70 72 71 if (oldfd != fd) { 73 int newfd; 74 if (vfs_clone(oldfd, fd, false, &newfd) != EOK) 72 if (vfs_clone(oldfd, fd, false) != fd) 75 73 return; 76 74 77 assert(newfd == fd);78 79 75 if (vfs_put(oldfd)) 80 76 return;
Note:
See TracChangeset
for help on using the changeset viewer.