freebsd-ports/sysutils/graveman/files/patch-src_cdrecord.c
Rong-En Fan f49ecbd400 - Update to 0.3.12.5
- Define USE_GETTEXT
- Fix hang on --scan_drives*

PR:		98800
Submitted by:	Li-Lun Wang <llwang@infor.org>
Approved by:	maintainer, delphij (mentor)
2006-06-30 00:49:53 +00: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);