diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2013-06-02 19:55:51 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2013-06-02 19:55:51 +0000 |
commit | 9fc4e493cf500f658954d0972fd245162e7fec4d (patch) | |
tree | bf6e4158affb109bd2e2bad881a24b763db36669 /app/xterm/trace.c | |
parent | f62ed4d7f0ac238a2f26aff830376ebf260f7a92 (diff) |
Update to xterm 293. Tested by naddy@ ajacoutot@
Diffstat (limited to 'app/xterm/trace.c')
-rw-r--r-- | app/xterm/trace.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/xterm/trace.c b/app/xterm/trace.c index ea495556c..b447da890 100644 --- a/app/xterm/trace.c +++ b/app/xterm/trace.c @@ -1,4 +1,4 @@ -/* $XTermId: trace.c,v 1.145 2013/02/06 09:51:17 tom Exp $ */ +/* $XTermId: trace.c,v 1.146 2013/04/21 00:37:00 tom Exp $ */ /* * Copyright 1997-2012,2013 by Thomas E. Dickey @@ -86,6 +86,7 @@ Trace(const char *fmt,...) trace_out = trace_who; if (!trace_fp) { + unsigned oldmask = umask(077); char name[BUFSIZ]; #if 0 /* usually I do not want unique names */ int unique; @@ -111,6 +112,7 @@ Trace(const char *fmt,...) xtermWarning("Cannot open \"%s\"\n", name); exit(EXIT_FAILURE); } + (void) umask(oldmask); } va_start(ap, fmt); |