[gnome-control-center/randr-set-as-default] Oops, open the temp file for writing
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/randr-set-as-default] Oops, open the temp file for writing
- Date: Fri, 19 Mar 2010 22:12:51 +0000 (UTC)
commit 54391e5713b1cc20f082ba1be8940c920bb6c880
Author: Federico Mena Quintero <federico novell com>
Date: Fri Mar 19 15:10:24 2010 -0600
Oops, open the temp file for writing
Signed-off-by: Federico Mena Quintero <federico novell com>
.../gnome-display-properties-install-systemwide.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/capplets/display/gnome-display-properties-install-systemwide.c b/capplets/display/gnome-display-properties-install-systemwide.c
index 406b4cf..0cb28a7 100644
--- a/capplets/display/gnome-display-properties-install-systemwide.c
+++ b/capplets/display/gnome-display-properties-install-systemwide.c
@@ -235,7 +235,7 @@ main (int argc, char **argv)
/* ... and open our temporary destination file right there */
strcpy (template, "gsd-XXXXXX");
- dest_fd = g_mkstemp_full (template, 0, 0644);
+ dest_fd = g_mkstemp_full (template, O_WRONLY, 0644);
if (dest_fd == -1) {
err = errno;
/* Translators: the first %s/%s is a directory/filename; the last %s is an error message */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]