Oops, open the temp file for writing

Signed-off-by: Federico Mena Quintero <federico@novell.com>
This commit is contained in:
Federico Mena Quintero 2010-03-19 15:10:24 -06:00
parent 95089f7762
commit 54391e5713

View file

@ -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 */