void-packages/srcpkgs/udisks2/patches/fix-stdio.patch

14 lines
240 B
Diff

--- tools/udisksctl.c
+++ tools/udisksctl.c
@@ -229,8 +229,8 @@
}
else
{
- fclose (stdout);
- stdout = _color_pager_out;
+ fflush (stdout);
+ dup2 (fileno(_color_pager_out), fileno(stdout));
}
out: