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.
This commit is contained in:
Warner Losh 2000-01-21 06:57:52 +00:00
parent 08b8e973fe
commit 27e2c03a27

View file

@ -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;
}