mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-16 15:44:04 +01:00
Turn an error into a warning. If running a 4.x binary on a 3.x system
we may still have vn in the kernel but not be able to see it. This enables building -current SNAPS in a chroot on a -stable system
This commit is contained in:
parent
ce737050df
commit
85bee2f03a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=47247
@ -43,7 +43,7 @@
|
||||
static char sccsid[] = "@(#)vnconfig.c 8.1 (Berkeley) 12/15/93";
|
||||
#endif
|
||||
static const char rcsid[] =
|
||||
"$Id: vnconfig.c,v 1.8 1999/01/26 04:53:09 peter Exp $";
|
||||
"$Id: vnconfig.c,v 1.9 1999/03/14 09:20:01 julian Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <err.h>
|
||||
@ -186,7 +186,7 @@ main(argc, argv)
|
||||
|
||||
if (modfind("vn") < 0)
|
||||
if (kldload("vn") < 0 || modfind("vn") < 0)
|
||||
err(1, "cannot find or load \"vn\" kernel module");
|
||||
warnx( "cannot find or load \"vn\" kernel module");
|
||||
|
||||
if (flags == 0)
|
||||
flags = VN_CONFIG;
|
||||
|
Loading…
Reference in New Issue
Block a user