summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libexec/makewhatis/makewhatis.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/libexec/makewhatis/makewhatis.sh b/libexec/makewhatis/makewhatis.sh
index 8c06ce94a9e..c18570936c1 100644
--- a/libexec/makewhatis/makewhatis.sh
+++ b/libexec/makewhatis/makewhatis.sh
@@ -21,6 +21,7 @@ trap "rm -rf $TDIR; exit 1" 1 2 15
MANDIR=${1-/usr/share/man}
if test ! -d "$MANDIR"; then
echo "makewhatis: $MANDIR: not a directory"
+ rm -rf $TDIR
exit 1
fi