summary refs log tree commit diff stats
path: root/src/common
diff options
context:
space:
mode:
authorArnav Singh <arnavion@gmail.com>2012-11-11 19:54:47 -0800
committerArnav Singh <arnavion@gmail.com>2012-11-11 19:54:47 -0800
commitaab041da917bcfcfc58e01f409a4e06c3bf62b0a (patch)
treecf7f1c246403f38c858ab50c67acf0e01d863000 /src/common
parented269176919c766ead728e08663715b7f9b1c349 (diff)
utf8-everywhere: Derp.
Diffstat (limited to 'src/common')
-rw-r--r--src/common/util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/util.c b/src/common/util.c
index 2587a7fa..e1ef3e62 100644
--- a/src/common/util.c
+++ b/src/common/util.c
@@ -1614,7 +1614,7 @@ copy_file (char *dl_src, char *dl_dest, int permissions)
 	char dl_tmp[4096];
 	int return_tmp, return_tmp2;
 
-	if ((tmp_src = g_open (dl_src, O_RDONLY | OFLAGS)) == -1)
+	if ((tmp_src = g_open (dl_src, O_RDONLY | OFLAGS, 0600)) == -1)
 	{
 		g_fprintf (stderr, "Unable to open() file '%s' (%s) !", dl_src,
 				  strerror (errno));
@@ -1622,7 +1622,7 @@ copy_file (char *dl_src, char *dl_dest, int permissions)
 	}
 
 	if ((tmp_dest =
-		 g_fprintf (dl_dest, O_WRONLY | O_CREAT | O_TRUNC | OFLAGS, permissions)) < 0)
+		 g_open (dl_dest, O_WRONLY | O_CREAT | O_TRUNC | OFLAGS, permissions)) < 0)
 	{
 		close (tmp_src);
 		g_fprintf (stderr, "Unable to create file '%s' (%s) !", dl_src,