Updating branch refs/heads/master
to f9b8b77365e8597b84c7e963874c590ae29e3876 (commit)
from 31356ee91b01bc18cc497a042eef27f2a01005dc (commit)
commit f9b8b77365e8597b84c7e963874c590ae29e3876
Author: Brian Tarricone <[email protected]>
Date: Mon Mar 8 19:39:07 2010 -0800
specify file mode on create for open()
src/main.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/main.c b/src/main.c
index 09b4d27..6d3460b 100644
--- a/src/main.c
+++ b/src/main.c
@@ -119,7 +119,7 @@ main(int argc, char **argv)
xsession_errors = xfce_get_homefile(".xsession-errors",
NULL);
open("/dev/null", O_RDONLY); /* stdin */
- i = open(xsession_errors, O_CREAT|O_APPEND); /* stdout */
+ i = open(xsession_errors, O_CREAT|O_APPEND, 600); /*
stdout */
if(i >= 0)
dup(i); /* stderr */
g_free(xsession_errors);
_______________________________________________
Xfce4-commits mailing list
[email protected]
http://foo-projects.org/mailman/listinfo/xfce4-commits