[Lunar-commits] <moonbase> mktemp: remove it from the moonbase.

Florin Braescu florin at lunar-linux.org
Sun Jan 18 20:06:13 CET 2009


commit e2f845b3623ae1780fbe6b452beb8b9f3990acf2
Author: Florin Braescu <florin at lunar-linux.org>
Date:   Sun Jan 18 21:06:13 2009 +0200

    mktemp: remove it from the moonbase.
    
    Finally :)
---
 utils/mktemp/BUILD   |    7 -------
 utils/mktemp/DETAILS |   29 -----------------------------
 2 files changed, 0 insertions(+), 36 deletions(-)

diff --git a/utils/mktemp/BUILD b/utils/mktemp/BUILD
deleted file mode 100644
index bf513e6..0000000
--- a/utils/mktemp/BUILD
+++ /dev/null
@@ -1,7 +0,0 @@
-(
-
-sedit 's/install: install-dirs install-binaries install-man/install: install-dirs install-binaries/' Makefile.in &&
-OPTS="$OPTS --bindir=/bin"
-default_build
-
-) > $C_FIFO 2>&1
diff --git a/utils/mktemp/DETAILS b/utils/mktemp/DETAILS
deleted file mode 100644
index 38231cd..0000000
--- a/utils/mktemp/DETAILS
+++ /dev/null
@@ -1,29 +0,0 @@
-           MODULE=mktemp
-         VERSION=1.6
-          SOURCE=$MODULE-$VERSION.tar.gz
-   SOURCE_URL[0]=ftp://ftp.mktemp.org/pub/mktemp/
-   SOURCE_URL[1]=ftp://ftp.courtesan.com/pub/mktemp/
-      SOURCE_VFY=sha1:562ee9f2b7033a90196409961c2137917c125838
-        WEB_SITE=http://www.mktemp.org/
-         ENTERED=20020307
-         UPDATED=20080904
-           SHORT="simple utility designed to make temporary file handling in shells scripts be safe and simple."
-cat << EOF
-What/why is mktemp?
-===================
-Mktemp is a simple utility designed to make temporary file handling
-in shells scripts be safe and simple.  Traditionally, people writing
-shell scripts have used constructs like:
-
-    TFILE=/tmp/foop.$$
-
-which are trivial to attack.  If such a script is run as root it may
-be possible for an attacker on the local host to gain access to the
-root login, corrupt or unlink system files, or do a variety of other
-nasty things.
-
-The basic problem is that most shells have no equivalent to open(2)'s
-O_EXCL flag.  While it is possible to avoid this using temporary
-directories, I consider the use of mktemp(1) to be superior both in terms
-of simplicity and robustness.  See the man page for more information.
-EOF


More information about the Lunar-commits mailing list