opnsense-ports/sysutils/graveman/files/patch-src_cdrecord.c
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

17 lines
432 B
C

--- src/cdrecord.c.orig Fri May 27 19:37:14 2005
+++ src/cdrecord.c Sun Jun 11 06:53:32 2006
@@ -187,7 +187,13 @@
}
Lstatus = g_io_channel_read_line(Astd, &Lbuffer, NULL, NULL, NULL);
- if (!Lbuffer) return TRUE;
+ if (!Lbuffer) {
+ if (Lstatus == G_IO_STATUS_EOF) {
+ *Lcont = 2;
+ return FALSE;
+ } else
+ return TRUE;
+ }
g_strstrip(Lbuffer);
_DEB("scan lecteur = %s\n", Lbuffer);