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