fix: add growisofs patch for cdrtools

This commit is contained in:
椰子 2024-06-27 10:55:54 +08:00
parent db7c51f8f8
commit f377a45194
2 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,18 @@
diff --git a/mkisofs/multi.c b/mkisofs/multi.c
index ddd0454..86aef8e 100644
--- a/mkisofs/multi.c
+++ b/mkisofs/multi.c
@@ -1365,6 +1365,13 @@ int
open_merge_image(path)
char *path;
{
+ if (path[0] == '-' && path[1] == '\0') {
+#ifdef NEED_O_BINARY
+ setmode(fileno(stdin), O_BINARY);
+#endif
+ in_image = stdin;
+ return(0);
+ }
#ifndef USE_SCG
in_image = fopen(path, "rb");
if (in_image == NULL) {