Changeset 1222 in kBuild for trunk/src/kash/redir.c
- Timestamp:
- Oct 8, 2007 12:24:31 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kash/redir.c
r1218 r1222 190 190 else 191 191 eflags = 0; 192 if ((f = open(fname, O_RDONLY|eflags)) < 0)192 if ((f = shfile_open(&psh->fdtab, fname, O_RDONLY|eflags, 0)) < 0) 193 193 goto eopen; 194 194 if (eflags) … … 197 197 case NFROMTO: 198 198 fname = redir->nfile.expfname; 199 if ((f = open(fname, O_RDWR|O_CREAT|O_TRUNC, 0666)) < 0)199 if ((f = shfile_open(&psh->fdtab, fname, O_RDWR|O_CREAT|O_TRUNC, 0666)) < 0) 200 200 goto ecreate; 201 201 break; … … 206 206 case NCLOBBER: 207 207 fname = redir->nfile.expfname; 208 if ((f = open(fname, oflags, 0666)) < 0)208 if ((f = shfile_open(&psh->fdtab, fname, oflags, 0666)) < 0) 209 209 goto ecreate; 210 210 break; 211 211 case NAPPEND: 212 212 fname = redir->nfile.expfname; 213 if ((f = open(fname, O_WRONLY|O_CREAT|O_APPEND, 0666)) < 0)213 if ((f = shfile_open(&psh->fdtab, fname, O_WRONLY|O_CREAT|O_APPEND, 0666)) < 0) 214 214 goto ecreate; 215 215 break; … … 229 229 break; 230 230 default: 231 abort();231 sh_abort(psh); 232 232 } 233 233
Note:
See TracChangeset
for help on using the changeset viewer.