From owner-cvs-all Thu Sep 10 22:29:50 1998 Return-Path: Received: (from daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA10373 for cvs-all-outgoing; Thu, 10 Sep 1998 22:29:50 -0700 (PDT) (envelope-from owner-cvs-all) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA10368; Thu, 10 Sep 1998 22:29:49 -0700 (PDT) (envelope-from imp@FreeBSD.org) From: Warner Losh Received: (from imp@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id WAA07207; Thu, 10 Sep 1998 22:29:48 -0700 (PDT) Date: Thu, 10 Sep 1998 22:29:48 -0700 (PDT) Message-Id: <199809110529.WAA07207@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: cvs commit: src/lib/libc/db/btree bt_open.c Sender: owner-cvs-all@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk imp 1998/09/10 22:29:47 PDT Modified files: lib/libc/db/btree bt_open.c Log: Don't trust TMPDIR if we're setuid root. This is used only for the backing file for an anonymous (memory based) btree, and I don't think that any setuid programs actually use it, but it is better to be safe than sorry. This has been in my tree for a long time, maybe a year or more... Inspired by: Similar changes in OpenBSD, if memory serves (like nearly a year ago) Revision Changes Path 1.5 +3 -2 src/lib/libc/db/btree/bt_open.c