aboutsummaryrefslogtreecommitdiffstats
path: root/main/udisks2/fix-stdio.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/udisks2/fix-stdio.patch')
-rw-r--r--main/udisks2/fix-stdio.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/main/udisks2/fix-stdio.patch b/main/udisks2/fix-stdio.patch
new file mode 100644
index 0000000000..32ec03e8ee
--- /dev/null
+++ b/main/udisks2/fix-stdio.patch
@@ -0,0 +1,13 @@
+--- udisks-2.1.1.orig/tools/udisksctl.c
++++ udisks-2.1.1/tools/udisksctl.c
+@@ -229,8 +229,8 @@
+ }
+ else
+ {
+- fclose (stdout);
+- stdout = _color_pager_out;
++ fflush (stdout);
++ dup2 (fileno(_color_pager_out), fileno(stdout));
+ }
+
+ out: