summaryrefslogtreecommitdiff
path: root/libguile/guile-snarf.in
diff options
context:
space:
mode:
authorMarius Vollmer <mvo@zagadka.de>2004-01-10 21:20:55 +0000
committerMarius Vollmer <mvo@zagadka.de>2004-01-10 21:20:55 +0000
commit27fca65629299a2aa348bd1218fda1d66596f529 (patch)
tree77a621246da21e1bc39774b1a861d55d5d69f19a /libguile/guile-snarf.in
parentc95243c71c35e97a6acf929ed3549310063befb2 (diff)
downloadguile-27fca65629299a2aa348bd1218fda1d66596f529.tar.gz
Use mktemp to create a truely unique temporary file name. Thanks to
Stefan Nordhausen!
Diffstat (limited to 'libguile/guile-snarf.in')
-rw-r--r--libguile/guile-snarf.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/libguile/guile-snarf.in b/libguile/guile-snarf.in
index f1343aab2..c8b7989cb 100644
--- a/libguile/guile-snarf.in
+++ b/libguile/guile-snarf.in
@@ -1,7 +1,7 @@
#!/bin/sh
# Extract the initialization actions from source files.
#
-# Copyright (C) 1996, 97, 98, 99, 2000, 2001, 2002 Free Software Foundation, Inc.
+# Copyright (C) 1996, 97, 98, 99, 2000, 2001, 2002, 2004 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -69,7 +69,7 @@ fi
# set vars and handler -- handle CPP override
cpp_ok_p=false
-temp="/tmp/snarf.$$"
+temp=`mktemp -t guile-snarf.XXXXXX` || exit 1
if [ x"$CPP" = x ] ; then cpp="@CPP@" ; else cpp="$CPP" ; fi
trap "rm -f $temp" 0 1 2 15