aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/polkit/files
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/polkit/files')
-rw-r--r--sysutils/polkit/files/patch-Makefile.in11
-rw-r--r--sysutils/polkit/files/patch-src_polkitagent_polkitagenthelperprivate.c12
-rw-r--r--sysutils/polkit/files/patch-src_polkitbackend_polkitbackendinteractiveauthority.c11
-rw-r--r--sysutils/polkit/files/patch-src_polkitbackend_polkitbackendlocalauthority.c23
-rw-r--r--sysutils/polkit/files/patch-src_programs_pkexec.c11
5 files changed, 57 insertions, 11 deletions
diff --git a/sysutils/polkit/files/patch-Makefile.in b/sysutils/polkit/files/patch-Makefile.in
new file mode 100644
index 000000000000..665c13c7d361
--- /dev/null
+++ b/sysutils/polkit/files/patch-Makefile.in
@@ -0,0 +1,11 @@
+--- Makefile.in.orig 2012-05-15 22:09:33.000000000 +0200
++++ Makefile.in 2012-05-15 22:10:16.000000000 +0200
+@@ -292,7 +292,7 @@
+ top_build_prefix = @top_build_prefix@
+ top_builddir = @top_builddir@
+ top_srcdir = @top_srcdir@
+-SUBDIRS = actions data src docs po test
++SUBDIRS = actions data src docs po
+ NULL =
+ EXTRA_DIST = \
+ HACKING \
diff --git a/sysutils/polkit/files/patch-src_polkitagent_polkitagenthelperprivate.c b/sysutils/polkit/files/patch-src_polkitagent_polkitagenthelperprivate.c
new file mode 100644
index 000000000000..c5c5bd8dade8
--- /dev/null
+++ b/sysutils/polkit/files/patch-src_polkitagent_polkitagenthelperprivate.c
@@ -0,0 +1,12 @@
+--- src/polkitagent/polkitagenthelperprivate.c.orig 2011-02-23 18:18:11.000000000 +0000
++++ src/polkitagent/polkitagenthelperprivate.c 2011-02-23 18:18:41.000000000 +0000
+@@ -103,7 +103,7 @@ flush_and_wait ()
+ {
+ fflush (stdout);
+ fflush (stderr);
+- fdatasync (fileno(stdout));
+- fdatasync (fileno(stderr));
++ fsync (fileno(stdout));
++ fsync (fileno(stderr));
+ usleep (100 * 1000);
+ }
diff --git a/sysutils/polkit/files/patch-src_polkitbackend_polkitbackendinteractiveauthority.c b/sysutils/polkit/files/patch-src_polkitbackend_polkitbackendinteractiveauthority.c
new file mode 100644
index 000000000000..76a08f711bcc
--- /dev/null
+++ b/sysutils/polkit/files/patch-src_polkitbackend_polkitbackendinteractiveauthority.c
@@ -0,0 +1,11 @@
+--- src/polkitbackend/polkitbackendinteractiveauthority.c.orig 2012-05-15 21:52:38.000000000 +0200
++++ src/polkitbackend/polkitbackendinteractiveauthority.c 2012-05-15 21:52:49.000000000 +0200
+@@ -279,7 +279,7 @@
+ static volatile GQuark domain = 0;
+
+ /* Force registering error domain */
+- domain = POLKIT_ERROR; domain;
++ domain = POLKIT_ERROR;
+
+ priv = POLKIT_BACKEND_INTERACTIVE_AUTHORITY_GET_PRIVATE (authority);
+
diff --git a/sysutils/polkit/files/patch-src_polkitbackend_polkitbackendlocalauthority.c b/sysutils/polkit/files/patch-src_polkitbackend_polkitbackendlocalauthority.c
new file mode 100644
index 000000000000..f4a57022e5f9
--- /dev/null
+++ b/sysutils/polkit/files/patch-src_polkitbackend_polkitbackendlocalauthority.c
@@ -0,0 +1,23 @@
+--- src/polkitbackend/polkitbackendlocalauthority.c.orig 2012-05-15 21:52:35.000000000 +0200
++++ src/polkitbackend/polkitbackendlocalauthority.c 2012-05-15 21:53:07.000000000 +0200
+@@ -700,11 +700,7 @@
+ ret = NULL;
+ name = polkit_unix_netgroup_get_name (POLKIT_UNIX_NETGROUP (group));
+
+- if (setnetgrent (name) == 0)
+- {
+- g_warning ("Error looking up net group with name %s: %s", name, g_strerror (errno));
+- goto out;
+- }
++ setnetgrent (name);
+
+ for (;;)
+ {
+@@ -737,7 +733,6 @@
+
+ ret = g_list_reverse (ret);
+
+- out:
+ endnetgrent ();
+ return ret;
+ }
diff --git a/sysutils/polkit/files/patch-src_programs_pkexec.c b/sysutils/polkit/files/patch-src_programs_pkexec.c
deleted file mode 100644
index 620ebae15918..000000000000
--- a/sysutils/polkit/files/patch-src_programs_pkexec.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- src/programs/pkexec.c.orig 2010-01-18 02:52:40.000000000 -0500
-+++ src/programs/pkexec.c 2010-01-18 03:06:57.000000000 -0500
-@@ -438,7 +438,7 @@ main (int argc, char *argv[])
- goto out;
- }
-
-- original_cwd = g_strdup (get_current_dir_name ());
-+ original_cwd = g_strdup (getcwd (NULL, 0));
- if (original_cwd == NULL)
- {
- g_printerr ("Error getting cwd.\n");