diff options
author | roam <roam@FreeBSD.org> | 2001-07-18 09:59:55 +0000 |
---|---|---|
committer | roam <roam@FreeBSD.org> | 2001-07-18 09:59:55 +0000 |
commit | 06fdcd5035e75a5e46d2049a186d4ceed2d03ece (patch) | |
tree | d78a83e3a3417285fb1edb3c35b14017d1ccf297 | |
parent | 0906f6dadabec90afba9d867c3a0920cbc922395 (diff) | |
download | FreeBSD-src-06fdcd5035e75a5e46d2049a186d4ceed2d03ece.zip FreeBSD-src-06fdcd5035e75a5e46d2049a186d4ceed2d03ece.tar.gz |
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" <bill@twwells.com> (the PR)
Gregory Bond <gnb@itga.com.au> (the actual patch)
Reviewed by: silence on -arch and -audit for the last 10 days
MFC after: 2 weeks
-rw-r--r-- | sys/conf/kmod.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/conf/kmod.mk b/sys/conf/kmod.mk index 54f5bff..0a832ab 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 \ |