--- src/sys/kern/imgact_elf.c 2005/06/01 20:04:53 1.29 +++ src/sys/kern/imgact_elf.c 2005/06/22 01:33:21 1.30 @@ -1408,7 +1408,7 @@ elf_putfiles(struct proc *p, elf_buf_t t * ignore STDIN/STDERR/STDOUT. */ for (i = 3; error == 0 && i < p->p_fd->fd_nfiles; i++) { - if ((fp = p->p_fd->fd_ofiles[i]) == NULL) + if ((fp = p->p_fd->fd_files[i].fp) == NULL) continue; /* * XXX Only checkpoint vnodes for now.