From 2f7538d646cb79bfefdc245d8fdf268584d17fb7 Mon Sep 17 00:00:00 2001 From: Peter Pentchev Date: Wed, 18 Jul 2001 09:59:55 +0000 Subject: [PATCH] Make sure that installing a module complains if the target modules directory does not exist, instead of creating/overwriting a file with the name of the (expected) directory. Yes, this deviates a bit from nearly all other install targets in the tree, but let's face it, removing a modules directory is not all that uncommon a mistake, and finding a file with the contents of the last module installed is a baaad surprise at boot time.. PR: 26317 Submitted by: "T. William Wells" (the PR) Gregory Bond (the actual patch) Reviewed by: silence on -arch and -audit for the last 10 days MFC after: 2 weeks --- sys/conf/kmod.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/conf/kmod.mk b/sys/conf/kmod.mk index 54f5bff2c03..0a832ab3433 100644 --- a/sys/conf/kmod.mk +++ b/sys/conf/kmod.mk @@ -205,7 +205,7 @@ _INSTALLFLAGS:= ${_INSTALLFLAGS${ie}} realinstall: _SUBDIR ${INSTALL} ${COPY} -o ${KMODOWN} -g ${KMODGRP} -m ${KMODMODE} \ - ${_INSTALLFLAGS} ${PROG} ${DESTDIR}${KMODDIR} + ${_INSTALLFLAGS} ${PROG} ${DESTDIR}${KMODDIR}/ .if defined(LINKS) && !empty(LINKS) @set ${LINKS}; \ while test $$# -ge 2; do \