Bug#107966: marked as done (misleading fopen manpage)

0 Aufrufe
Direkt zur ersten ungelesenen Nachricht

Debian Bug Tracking System

ungelesen,
03.01.2002, 15:55:1503.01.02
an
Your message dated Thu, 03 Jan 2002 15:12:52 -0500
with message-id <E16MEEO-...@auric.debian.org>
and subject line Bug#107966: fixed in manpages 1.47-4
has caused the attached Bug report 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 I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 7 Aug 2001 21:03:38 +0000
From rafael.e...@ic.unicamp.br Tue Aug 07 16:03:38 2001
Return-path: <rafael.e...@ic.unicamp.br>
Received: from grande.dcc.unicamp.br [143.106.7.8]
by master.debian.org with esmtp (Exim 3.12 1 (Debian))
id 15UE0o-0002xc-00; Tue, 07 Aug 2001 16:03:38 -0500
Received: from saofrancisco.ic.unicamp.br (saofrancisco.ic.unicamp.br [143.106.7.4])
by grande.dcc.unicamp.br (8.9.3/8.9.3) with ESMTP id SAA21836
for <sub...@bugs.debian.org>; Tue, 7 Aug 2001 18:03:34 -0300 (EST)
Received: from iguacu.dcc.unicamp.br (iguacu.dcc.unicamp.br [143.106.7.2])
by saofrancisco.ic.unicamp.br (8.11.2/8.11.2) with ESMTP id f77L2u601264
for <sub...@bugs.debian.org>; Tue, 7 Aug 2001 18:02:56 -0300
Received: from localhost by iguacu.dcc.unicamp.br (8.11.0/8.11.0) with ESMTP id f77L3RO23826
for <sub...@bugs.debian.org>; Tue, 7 Aug 2001 18:03:31 -0300 (EST)
X-Authentication-Warning: iguacu.dcc.unicamp.br: ra003280 owned process doing -bs
Date: Tue, 7 Aug 2001 18:03:26 -0300 (EST)
From: Rafael Avila de Espindola <rafael.e...@ic.unicamp.br>
X-Sender: ra00...@iguacu.dcc.unicamp.br
To: sub...@bugs.debian.org
Subject: misleading fopen manpage
Message-ID: <Pine.GSO.4.10.101080...@iguacu.dcc.unicamp.br>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Delivered-To: sub...@bugs.debian.org

Package: manpages-dev
Version: 1.34-3

The description of the "a" and "a+" modes of fopen are misleading,
I think this patch solves it.

--- fopen.3 Tue Aug 7 17:42:01 2001
+++ fopen.3_novo Tue Aug 7 17:40:05 2001
@@ -80,11 +80,12 @@
.TP
.B a
Open for writing. The file is created if it does not exist. The stream
is
-positioned at the end of the file.
+always positioned at the end of the file.
.TP
.B a+
Open for reading and writing. The file is created if it does not exist.
-The stream is positioned at the end of the file.
+The stream is positioned at the end of the file. All writes will take
+place at the current end-of-file, even if you call fseek.
.PP
The
.I mode
@@ -97,6 +98,13 @@
and adding the ``b'' may be a good idea if you do I/O to a binary
file and expect that your program may be ported to non-Unix
environments.)
+.PP
+If you want to be able to write to any point in a file, but open it in
+similar manner to the ``a'' or ``a+'' modes (don't truncate, but create
it
+if it does not exists) you should do:
+.PP
+if(!fopen(``file'',``r+''))
+ fopen(``file'',``w'');
.PP
Any created files will have mode
.BR S_IRUSR \&| S_IWUSR \&| S_IRGRP \&| S_IWGRP \&| S_IROTH \&| S_IWOTH

---------------------------------------
Received: (at 107966-close) by bugs.debian.org; 3 Jan 2002 20:24:43 +0000
From tr...@auric.debian.org Thu Jan 03 14:24:43 2002
Return-path: <tr...@auric.debian.org>
Received: from auric.debian.org [206.246.226.45] (mail)
by master.debian.org with esmtp (Exim 3.12 1 (Debian))
id 16MEPq-0003c4-00; Thu, 03 Jan 2002 14:24:43 -0600
Received: from troup by auric.debian.org with local (Exim 3.12 1 (Debian))
id 16MEEO-0007Gw-00; Thu, 03 Jan 2002 15:12:52 -0500
From: Martin Schulze <jo...@finlandia.infodrom.north.de>
To: 107966...@bugs.debian.org
X-Katie: $Revision: 1.66 $
Subject: Bug#107966: fixed in manpages 1.47-4
Message-Id: <E16MEEO-...@auric.debian.org>
Sender: James Troup <tr...@auric.debian.org>
Date: Thu, 03 Jan 2002 15:12:52 -0500
Delivered-To: 107966...@bugs.debian.org

We believe that the bug you reported is fixed in the latest version of
manpages, which has been installed in the Debian FTP archive:

manpages-dev_1.47-4_all.deb
to pool/main/m/manpages/manpages-dev_1.47-4_all.deb
manpages_1.47-4.diff.gz
to pool/main/m/manpages/manpages_1.47-4.diff.gz
manpages_1.47-4.dsc
to pool/main/m/manpages/manpages_1.47-4.dsc
manpages_1.47-4_all.deb
to pool/main/m/manpages/manpages_1.47-4_all.deb

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 107...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Martin Schulze <jo...@finlandia.infodrom.north.de> (supplier of updated manpages 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 ftpm...@debian.org)


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

Format: 1.7
Date: Thu, 3 Jan 2002 20:25:16 +0100
Source: manpages
Binary: manpages-dev manpages
Architecture: source all
Version: 1.47-4
Distribution: unstable
Urgency: low
Maintainer: Martin Schulze <jo...@debian.org>
Changed-By: Martin Schulze <jo...@finlandia.infodrom.north.de>
Description:
manpages - Manual pages about using a GNU/Linux system
manpages-dev - Manual pages about using GNU/Linux for development
Closes: 107966
Changes:
manpages (1.47-4) unstable; urgency=low
.
* Changed include file for <regexp.h> after conversation with upstream
* Updated fopen(3) to document that fseek(3) is being ignored in certain
situations. (closes: Bug#107966)
Files:
a49082a489b2f70898ded76a7efd5db6 626 doc - manpages_1.47-4.dsc
4086c67d646078928ff91d5f37092cb0 27796 doc - manpages_1.47-4.diff.gz
8dd76b8d792e4ac743c172cdde3318a8 327580 doc important manpages_1.47-4_all.deb
4cc3be487725abd741b697f30adc9083 852884 doc standard manpages-dev_1.47-4_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8NLDdW5ql+IAeqTIRAk3QAJ0RM78VG+A/8a2rq+XWBsfvzR7c1gCgqPnt
fQibwtQZI/eidGUYmO/a9HI=
=WRp5
-----END PGP SIGNATURE-----


--
To UNSUBSCRIBE, email to debian-bugs-c...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Allen antworten
Dem Autor antworten
Weiterleiten
0 neue Nachrichten