Changes in uspace/app/bdsh/exec.c [582a0b8:a53ed3a] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/exec.c
r582a0b8 ra53ed3a 58 58 int fd; 59 59 60 fd = vfs_lookup_open(f, WALK_REGULAR, MODE_READ);61 if ( fd >= 0) {60 errno_t rc = vfs_lookup_open(f, WALK_REGULAR, MODE_READ, &fd); 61 if (rc == EOK) { 62 62 vfs_put(fd); 63 63 return 0; … … 98 98 task_exit_t texit; 99 99 char *tmp; 100 int rc, retval, i; 100 errno_t rc; 101 int retval, i; 101 102 int file_handles[3] = { -1, -1, -1 }; 102 103 FILE *files[3]; … … 117 118 free(tmp); 118 119 119 if (rc != 0) {120 if (rc != EOK) { 120 121 cli_error(CL_EEXEC, "%s: Cannot spawn `%s' (%s)", progname, cmd, 121 122 str_error(rc));
Note:
See TracChangeset
for help on using the changeset viewer.