diff options
author | imp <imp@FreeBSD.org> | 2000-01-21 06:57:52 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2000-01-21 06:57:52 +0000 |
commit | 72c8ff7d8a5f214ddae6f08cf6a1cefbe35fddc2 (patch) | |
tree | b5ce6405eba0edc5b27573c20de1255368116e15 /sys/kern/kern_descrip.c | |
parent | 0c9a9501c25d5f278aa2a0ff474fb9640e2bbe07 (diff) | |
download | FreeBSD-src-72c8ff7d8a5f214ddae6f08cf6a1cefbe35fddc2.zip FreeBSD-src-72c8ff7d8a5f214ddae6f08cf6a1cefbe35fddc2.tar.gz |
Fix the style bugs in the style bugs fix. The style bug fix made the
new function inconsistant with the rest of this file. The spelling
and grammer fixes were good and remain.
Diffstat (limited to 'sys/kern/kern_descrip.c')
-rw-r--r-- | sys/kern/kern_descrip.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/kern/kern_descrip.c b/sys/kern/kern_descrip.c index 921f08d..1de896e 100644 --- a/sys/kern/kern_descrip.c +++ b/sys/kern/kern_descrip.c @@ -975,13 +975,15 @@ setugidsafety(p) fpp = fdp->fd_ofiles; fdfp = fdp->fd_ofileflags; - for (i = 0; i <= 2 && i <= fdp->fd_lastfile; i++, fpp++, fdfp++) { + for (i = 0; i <= fdp->fd_lastfile; i++, fpp++, fdfp++) { + if (i > 2) + break; if (*fpp != NULL && is_unsafe(*fpp)) { if ((*fdfp & UF_MAPPED) != 0) - (void)munmapfd(p, i); - (void)closef(*fpp, p); + (void) munmapfd(p, i); + (void) closef(*fpp, p); *fpp = NULL; - *fdfp = '\0'; + *fdfp = 0; if (i < fdp->fd_freefile) fdp->fd_freefile = i; } |