[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#367849: marked as done (glibc-doc: rpmatch() example has wrong use of getline())



Your message dated Mon, 02 May 2011 18:32:10 +0000
with message-id <E1QGxuk-0007E6-0q@franck.debian.org>
and subject line Bug#367849: fixed in glibc-doc-reference 2.13-1
has caused the Debian Bug report #367849,
regarding glibc-doc: rpmatch() example has wrong use of getline()
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
367849: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=367849
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: glibc-doc
Version: 2.3.6-7
Severity: normal
Tags: patch
File: file:///usr/share/doc/glibc-doc/html/libc_7.html#SEC121

The example code has:

        while (getline (&line, &len, stdout) >= 0)

which causes getline() to try to read from stdout, causing an error,
and the result is always a return value of -1.  Of course it should be
stdin.

--- locale.texi	2002-06-29 23:35:21.000000000 -0400
+++ new/locale.texi	2006-05-17 19:03:01.000000000 -0400
@@ -1210,7 +1210,7 @@
   /* @r{Prepare the @code{getline} call.}  */
   line = NULL;
   len = 0;
-  while (getline (&line, &len, stdout) >= 0)
+  while (getline (&line, &len, stdin) >= 0)
     @{
       /* @r{Check the response.}  */
       int res = rpmatch (line);


--- End Message ---
--- Begin Message ---
Source: glibc-doc-reference
Source-Version: 2.13-1

We believe that the bug you reported is fixed in the latest version of
glibc-doc-reference, which is due to be installed in the Debian FTP archive:

glibc-doc-reference_2.13-1.diff.gz
  to non-free/g/glibc-doc-reference/glibc-doc-reference_2.13-1.diff.gz
glibc-doc-reference_2.13-1.dsc
  to non-free/g/glibc-doc-reference/glibc-doc-reference_2.13-1.dsc
glibc-doc-reference_2.13-1_all.deb
  to non-free/g/glibc-doc-reference/glibc-doc-reference_2.13-1_all.deb
glibc-doc-reference_2.13.orig.tar.gz
  to non-free/g/glibc-doc-reference/glibc-doc-reference_2.13.orig.tar.gz



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 367849@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Aurelien Jarno <aurel32@debian.org> (supplier of updated glibc-doc-reference package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Mon, 02 May 2011 19:39:48 +0200
Source: glibc-doc-reference
Binary: glibc-doc-reference
Architecture: source all
Version: 2.13-1
Distribution: unstable
Urgency: low
Maintainer: GNU Libc Maintainers <debian-glibc@lists.debian.org>
Changed-By: Aurelien Jarno <aurel32@debian.org>
Description: 
 glibc-doc-reference - GNU C Library: Documentation
Closes: 367849
Changes: 
 glibc-doc-reference (2.13-1) unstable; urgency=low
 .
   * New upstream version:
     - Fix rpmatch() example wrt getline() usage (closes: #367849).
   * Bump Standards-Version to 3.9.2.
Checksums-Sha1: 
 bc4d03ab5d4c1f95c862ece40005ce7d0f4dd6b3 1326 glibc-doc-reference_2.13-1.dsc
 f0203cafee3bc30570564a0c12cb2d78f9b80f6a 760114 glibc-doc-reference_2.13.orig.tar.gz
 3afeca9576375ed33714b1a10a6fd794bebed78b 12683 glibc-doc-reference_2.13-1.diff.gz
 dcdc698eb201048807fadca62687e7cfdab43b5e 5224756 glibc-doc-reference_2.13-1_all.deb
Checksums-Sha256: 
 d41c8989c0b058ce5fb2330fb840d75df29163053a5f87588393f216a37e6719 1326 glibc-doc-reference_2.13-1.dsc
 43fac5c78462a3563dccdec349506f161d22cb942c1138963bba64e310fbd69a 760114 glibc-doc-reference_2.13.orig.tar.gz
 c9b78e04a970086c1fdbd504c01d60dda05e2993dfe47f431033ec98ebdfcc5f 12683 glibc-doc-reference_2.13-1.diff.gz
 03b47dbf78e6face711996486f96dd56e90ae0f3505705fe5a82a0d683dbeddd 5224756 glibc-doc-reference_2.13-1_all.deb
Files: 
 b399ec289293db66882c857c56a64ce6 1326 non-free/doc optional glibc-doc-reference_2.13-1.dsc
 f95db4fb2fa24d75b524467bf1739474 760114 non-free/doc optional glibc-doc-reference_2.13.orig.tar.gz
 155a0583c77a08b6a46a84c1b1101f9c 12683 non-free/doc optional glibc-doc-reference_2.13-1.diff.gz
 f23f11b6c9598cb26c909838c539faa2 5224756 non-free/doc optional glibc-doc-reference_2.13-1_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iD8DBQFNvvVTw3ao2vG823MRAgU2AJ9W2cKyb2CvXY+ExRqezQxFGslePgCggdrQ
wwl9/6uYYIfs/bVAtWW8TGs=
=Y/zT
-----END PGP SIGNATURE-----



--- End Message ---

Reply to: