diff options
author | Pedro F. Giffuni <pfg@FreeBSD.org> | 2017-11-04 15:41:08 +0000 |
---|---|---|
committer | Pedro F. Giffuni <pfg@FreeBSD.org> | 2017-11-04 15:41:08 +0000 |
commit | 7aa472731ec5468e16e396bf5cec14c2df52ffb5 (patch) | |
tree | a9004e255991cd3fbbe833a649456f3d768a89f4 | |
parent | 533b437eae3868d57dbf40271b0b80a21d4d39ad (diff) |
Notes
-rw-r--r-- | sys/kern/imgact_shell.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/kern/imgact_shell.c b/sys/kern/imgact_shell.c index aaf521cf251e7..bc21714aab295 100644 --- a/sys/kern/imgact_shell.c +++ b/sys/kern/imgact_shell.c @@ -97,8 +97,7 @@ CTASSERT(MAXSHELLCMDLEN >= MAXINTERP + 3); * 6.x branch on May 28, 2005 (matching __FreeBSD_version 600029). */ int -exec_shell_imgact(imgp) - struct image_params *imgp; +exec_shell_imgact(struct image_params *imgp) { const char *image_header = imgp->image_header; const char *ihp, *interpb, *interpe, *maxp, *optb, *opte, *fname; @@ -125,7 +124,7 @@ exec_shell_imgact(imgp) * However, we don't know how far into the page the contents are * valid -- the actual file might be much shorter than the page. * So find out the file size. - */ + */ error = VOP_GETATTR(imgp->vp, &vattr, imgp->proc->p_ucred); if (error) return (error); |