fix PR 4292 slightly differently

This commit is contained in:
mikel 1997-10-20 23:02:09 +00:00
parent ca99a37396
commit 44fd5cbf64
1 changed files with 5 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: apropos.c,v 1.9 1997/10/20 02:11:32 lukem Exp $ */
/* $NetBSD: apropos.c,v 1.10 1997/10/20 23:02:09 mikel Exp $ */
/*
* Copyright (c) 1987, 1993, 1994
@ -44,7 +44,7 @@ __COPYRIGHT("@(#) Copyright (c) 1987, 1993, 1994\n\
#if 0
static char sccsid[] = "@(#)apropos.c 8.8 (Berkeley) 5/4/95";
#else
__RCSID("$NetBSD: apropos.c,v 1.9 1997/10/20 02:11:32 lukem Exp $");
__RCSID("$NetBSD: apropos.c,v 1.10 1997/10/20 23:02:09 mikel Exp $");
#endif
#endif /* not lint */
@ -125,8 +125,9 @@ main(argc, argv)
if (glob(ep->s, GLOB_BRACE | GLOB_NOSORT | GLOB_QUOTE,
NULL, &pg) != 0)
err(1, "glob");
for (p = pg.gl_pathv; pg.gl_pathc && *p; p++)
apropos(argv, *p, 0);
if (pg.gl_pathc)
for (p = pg.gl_pathv; *p; p++)
apropos(argv, *p, 0);
globfree(&pg);
}
}