From e27dfc4666b7e243b895518efac276833621e49e Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 13 Dec 2007 23:59:23 +0000 Subject: [PATCH] Use /tmp for logs, as /usr/tmp is not available under Ubuntu. --- src/sst.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sst.py b/src/sst.py index c1785ee..920fbd1 100644 --- a/src/sst.py +++ b/src/sst.py @@ -6200,9 +6200,10 @@ if __name__ == '__main__': raise SystemExit, 1 # where to save the input in case of bugs try: - logfp = open("/usr/tmp/sst-input.log", "w") + logfp = open("/tmp/sst-input.log", "w") except IOError: sys.stderr.write("sst: warning, can't open logfile\n") + sys.exit(1) if logfp: logfp.write("# seed %s\n" % seed) logfp.write("# options %s\n" % " ".join(arguments)) -- 2.31.1