diff options
author | David Greenman <dg@FreeBSD.org> | 1995-11-06 12:52:37 +0000 |
---|---|---|
committer | David Greenman <dg@FreeBSD.org> | 1995-11-06 12:52:37 +0000 |
commit | c52007c2ccc627f0eec86e7f7a1959ea0575b870 (patch) | |
tree | b1085bc2d506b9f9ebbc0763719203202ce8d6a6 /sys/kern/imgact_gzip.c | |
parent | 593ecf888e24260f2a48eb3052c9b4c1ce03ca16 (diff) | |
download | src-c52007c2ccc627f0eec86e7f7a1959ea0575b870.tar.gz src-c52007c2ccc627f0eec86e7f7a1959ea0575b870.zip |
All:
Changed vnodep -> vp for consistency with the rest of the kernel, and
changed iparams -> imgp for brevity.
kern_exec.c:
Explicitly initialized some additional parts of the image_params struct
to avoid bzeroing it. Rewrote the set-id code to reduce the number of
logical tests. The rewrite exposed a mostly benign bug in the algorithm:
traced set-id images would get ktracing disabled even if the set-id didn't
happen for other reasons.
Notes
Notes:
svn path=/head/; revision=12130
Diffstat (limited to 'sys/kern/imgact_gzip.c')
-rw-r--r-- | sys/kern/imgact_gzip.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/kern/imgact_gzip.c b/sys/kern/imgact_gzip.c index 1fb4c9213b04..7fba9b9f0ecd 100644 --- a/sys/kern/imgact_gzip.c +++ b/sys/kern/imgact_gzip.c @@ -6,7 +6,7 @@ * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp * ---------------------------------------------------------------------------- * - * $Id: imgact_gzip.c,v 1.13 1995/03/16 18:12:27 bde Exp $ + * $Id: imgact_gzip.c,v 1.14 1995/05/30 08:05:18 rgrimes Exp $ * * This module handles execution of a.out files which have been run through * "gzip". This saves diskspace, but wastes cpu-cycles and VM. @@ -53,11 +53,11 @@ static int do_aout_hdr __P((struct imgact_gzip *)); static int Flush __P((void *vp, u_char *, u_long siz)); int -exec_gzip_imgact(iparams) - struct image_params *iparams; +exec_gzip_imgact(imgp) + struct image_params *imgp; { int error, error2 = 0; - u_char *p = (u_char *) iparams->image_header; + u_char *p = (u_char *) imgp->image_header; struct imgact_gzip igz; struct inflate infl; @@ -88,7 +88,7 @@ exec_gzip_imgact(iparams) infl.gz_input = NextByte; infl.gz_output = Flush; - igz.ip = iparams; + igz.ip = imgp; igz.idx = 10; if (p[3] & 0x08) { /* skip a filename */ @@ -299,7 +299,7 @@ NextByte(void *vp) VM_PROT_READ, /* protection */ VM_PROT_READ, /* max protection */ 0, /* flags */ - (caddr_t) igz->ip->vnodep, /* vnode */ + (caddr_t) igz->ip->vp, /* vnode */ igz->offset); /* offset */ if (error) { igz->where = __LINE__; |