Changes in uspace/app/bdsh/exec.c [7171760:aa8053f1] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/exec.c
r7171760 raa8053f1 40 40 #include <str_error.h> 41 41 #include <errno.h> 42 #include <vfs/vfs.h>43 42 44 43 #include "config.h" … … 100 99 char *tmp; 101 100 int rc, retval, i; 102 int file_handles[3];103 int *file_handles_p[4];101 fdi_node_t file_nodes[3]; 102 fdi_node_t *file_nodes_p[4]; 104 103 FILE *files[3]; 105 104 … … 112 111 113 112 for (i = 0; i < 3 && files[i] != NULL; i++) { 114 if (f handle(files[i], &file_handles[i]) == EOK) {115 file_ handles_p[i] = &file_handles[i];113 if (fnode(files[i], &file_nodes[i]) == EOK) { 114 file_nodes_p[i] = &file_nodes[i]; 116 115 } 117 116 else { 118 file_ handles_p[i] = NULL;117 file_nodes_p[i] = NULL; 119 118 } 120 119 } 121 file_ handles_p[i] = NULL;120 file_nodes_p[i] = NULL; 122 121 123 rc = task_spawnvf(&tid, tmp, (const char **) argv, file_ handles_p);122 rc = task_spawnvf(&tid, tmp, (const char **) argv, file_nodes_p); 124 123 free(tmp); 125 124
Note:
See TracChangeset
for help on using the changeset viewer.