From 06c6ea160ed358994288b20152be4fbfd9673d53 Mon Sep 17 00:00:00 2001 From: hanwen Date: Mon, 21 Jul 2003 12:03:05 +0000 Subject: [PATCH] * python/lilylib.py (error_log): use mktemp iso. temp_dir. This fixes a security hole. * scripts/lilypond-book.py (original_dir): remove temp_dir --- ChangeLog | 5 +++++ python/lilylib.py | 2 +- scripts/lilypond-book.py | 7 ++----- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0c2dc948bf..515d4df4dc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2003-07-21 Han-Wen Nienhuys + * python/lilylib.py (error_log): use mktemp iso. temp_dir. This + fixes a security hole. + + * scripts/lilypond-book.py (original_dir): remove temp_dir + * scm/document-translation.scm: use @code tags. 2003-07-20 Heikki Junes diff --git a/python/lilylib.py b/python/lilylib.py index dcb7c797fa..a7b6411bab 100644 --- a/python/lilylib.py +++ b/python/lilylib.py @@ -220,7 +220,7 @@ def command_name (cmd): return re.match ('^[ \t]*([^ \t]*)', cmd).group (1) def error_log (name): - return os.path.join (__main__.temp_dir, '%s.errorlog' % name) + return tempfile.mktemp ('%s.errorlog' % name) def read_pipe (cmd, mode = 'r'): redirect = '' diff --git a/scripts/lilypond-book.py b/scripts/lilypond-book.py index cbf018bd50..ddb2ceab08 100644 --- a/scripts/lilypond-book.py +++ b/scripts/lilypond-book.py @@ -107,10 +107,8 @@ program_name = 'lilypond-book' verbose_p = 0 pseudo_filter_p = 0 original_dir = os.getcwd () -#temp_dir = os.path.join (original_dir, '%s.dir' % program_name) -#urg -temp_dir = '/tmp' -keep_temp_dir_p = 0 + + preview_resolution = 90 ## FIXME @@ -150,7 +148,6 @@ option_definitions = [ include_path = [os.getcwd ()] - #lilypond_binary = 'valgrind --suppressions=/home/hanwen/usr/src/guile-1.6.supp --num-callers=10 /home/hanwen/usr/src/lilypond/lily/out/lilypond' lilypond_binary = os.path.join ('@bindir@', 'lilypond') -- 2.11.4.GIT