Add a patch from giovanni@ to make thunar honour umask (thanks!)
See http://bugzilla.xfce.org/show_bug.cgi?id=3532 for details. Bump PKGNAME and regen other patches while here.
This commit is contained in:
parent
d82ffb3123
commit
7a374caf89
@ -1,10 +1,10 @@
|
||||
# $OpenBSD: Makefile,v 1.14 2009/03/08 17:13:31 landry Exp $
|
||||
# $OpenBSD: Makefile,v 1.15 2009/03/12 18:09:13 landry Exp $
|
||||
|
||||
COMMENT= lightweight file manager for xfce4
|
||||
|
||||
XFCE_VERSION= 1.0.0
|
||||
XFCE_PROJECT= Thunar
|
||||
PKGNAME= ${DISTNAME:L}
|
||||
PKGNAME= ${DISTNAME:L}p0
|
||||
|
||||
SHARED_LIBS= thunarx-1 5.1 \
|
||||
thunar-vfs-1 5.1
|
||||
|
@ -1,7 +1,7 @@
|
||||
$OpenBSD: patch-acinclude_m4,v 1.1 2008/04/22 23:33:01 fgsch Exp $
|
||||
--- acinclude.m4.orig Tue Apr 22 18:40:13 2008
|
||||
+++ acinclude.m4 Tue Apr 22 18:42:29 2008
|
||||
@@ -121,9 +121,9 @@ XDT_CHECK_PACKAGE([LIBFAM], [gamin], [0.1.0],
|
||||
$OpenBSD: patch-acinclude_m4,v 1.2 2009/03/12 18:09:13 landry Exp $
|
||||
--- acinclude.m4.orig Tue Nov 11 14:44:54 2008
|
||||
+++ acinclude.m4 Thu Mar 12 18:45:00 2009
|
||||
@@ -143,9 +143,9 @@ XDT_CHECK_PACKAGE([LIBFAM], [gamin], [0.1.0],
|
||||
[
|
||||
AC_CHECK_LIB([fam], [FAMOpen],
|
||||
[
|
||||
|
@ -1,7 +1,7 @@
|
||||
$OpenBSD: patch-plugins_thunar-uca_Makefile_in,v 1.2 2008/04/22 23:33:01 fgsch Exp $
|
||||
--- plugins/thunar-uca/Makefile.in.orig Sun Dec 2 13:47:30 2007
|
||||
+++ plugins/thunar-uca/Makefile.in Wed Apr 23 00:16:17 2008
|
||||
@@ -381,7 +381,7 @@ thunar_uca_la_LDFLAGS = \
|
||||
$OpenBSD: patch-plugins_thunar-uca_Makefile_in,v 1.3 2009/03/12 18:09:13 landry Exp $
|
||||
--- plugins/thunar-uca/Makefile.in.orig Tue Feb 24 22:08:51 2009
|
||||
+++ plugins/thunar-uca/Makefile.in Thu Mar 12 18:45:00 2009
|
||||
@@ -383,7 +383,7 @@ thunar_uca_la_LDFLAGS = \
|
||||
-module \
|
||||
$(PLATFORM_LDFLAGS)
|
||||
|
||||
|
@ -0,0 +1,22 @@
|
||||
$OpenBSD: patch-thunar-vfs_thunar-vfs-io-jobs_c,v 1.1 2009/03/12 18:09:13 landry Exp $
|
||||
Make thunar honour umask, see http://bugzilla.xfce.org/show_bug.cgi?id=3532
|
||||
--- thunar-vfs/thunar-vfs-io-jobs.c.orig Thu Mar 12 18:46:56 2009
|
||||
+++ thunar-vfs/thunar-vfs-io-jobs.c Thu Mar 12 18:47:28 2009
|
||||
@@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user