aboutsummaryrefslogtreecommitdiffstats
path: root/main/udisks2/fix-stdio.patch
blob: 32ec03e8eec3dc2e2ce1132b029331b43e5c7b1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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: