[Debian-med-packaging] Bug#626757: libgtextutils: Ignored return value caused build failure when warn_unused_result is error.

Ilya Barygin barygin at gmail.com
Sat Jun 25 16:20:23 UTC 2011


Hello,

I have backported the necessary change from version 0.6.2 for Ubuntu 
11.10 Oneiric.
https://launchpad.net/ubuntu/+source/libgtextutils/0.6-1ubuntu1

--- libgtextutils-0.6.orig/tests/test_pipe_fitter.c
+++ libgtextutils-0.6/tests/test_pipe_fitter.c
@@ -39,7 +39,8 @@

  	//Pipe output through a GZIP program
  	fd = pipe_output_command ( "gzip", "pipe_out.txt.gz", &pid ) ;
-	write ( fd, text, strlen(text))  ;
+	if (write ( fd, text, strlen(text))==-1)
+		err(1,"write(to gzip pipe) failed");
  	pipe_close(fd, pid);







More information about the Debian-med-packaging mailing list