Skip to content
Snippets Groups Projects
Commit e53de71e authored by Jannis Pohlmann's avatar Jannis Pohlmann
Browse files

* thunar-vfs/thunar-vfs-io-jobs.c: Apply umask properly when

	  creating files/directories. Patch by Giovanni Bechis (bug
	  #3532).

(Old svn revision: 29654)
parent 3a39715d
No related branches found
No related tags found
No related merge requests found
2009-03-12 Jannis Pohlmann <jannis@xfce.org>
* thunar-vfs/thunar-vfs-io-jobs.c: Apply umask properly when
creating files/directories. Patch by Giovanni Bechis (bug
#3532).
2009-02-24 Stephan Arts <stephan@xfce.org>
* == Released 1.0.0 ==
......
......@@ -433,7 +433,7 @@ _thunar_vfs_io_jobs_create (ThunarVfsJob *job,
again:
/* try to create the file at the given path */
fd = g_open (absolute_path, O_CREAT | O_EXCL | O_WRONLY, 0644);
fd = g_open (absolute_path, O_CREAT | O_EXCL | O_WRONLY, DEFFILEMODE);
if (G_UNLIKELY (fd < 0))
{
/* check if the file already exists */
......@@ -708,7 +708,7 @@ _thunar_vfs_io_jobs_mkdir (ThunarVfsJob *job,
_thunar_vfs_job_process_path (job, lp);
/* try to create the target directory */
if (!_thunar_vfs_io_ops_mkdir (lp->data, 0755, THUNAR_VFS_IO_OPS_NONE, error))
if (!_thunar_vfs_io_ops_mkdir (lp->data, 0777 & ~umask(0), THUNAR_VFS_IO_OPS_NONE, error))
return FALSE;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment