Debian Bug report logs - #756602
printf(3) manpage: please document that %n can't include flags, width or precision

version graph

Package: manpages-dev; Maintainer for manpages-dev is Dr. Tobias Quathamer <[email protected]>; Source for manpages-dev is src:manpages (PTS, buildd, popcon).

Reported by: Jakub Wilk <[email protected]>

Date: Thu, 31 Jul 2014 09:30:02 UTC

Severity: minor

Tags: fixed-upstream

Found in version manpages/3.65-1

Fixed in version manpages/3.71-1

Done: Simon Paillard <[email protected]>

Bug is archived. No further changes may be made.

Full log


Message #26 received at [email protected] (full text, mbox, reply):

Received: (at 756602) by bugs.debian.org; 1 Aug 2014 13:08:33 +0000
From [email protected] Fri Aug 01 13:08:33 2014
X-Spam-Checker-Version: SpamAssassin 3.3.2-bugs.debian.org_2005_01_02
	(2011-06-06) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-6.9 required=4.0 tests=BAYES_00,DKIM_SIGNED,
	DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,HAS_BUG_NUMBER,RCVD_IN_DNSWL_LOW,
	SPF_PASS autolearn=ham version=3.3.2-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 4; hammy, 135; neutral, 40; spammy, 0.
	spammytokens: hammytokens:0.000-+--manpage, 0.000-+--100644, 0.000-+--size_t,
	0.000-+--U*jwilk, 0.000-+--sk:jwilkd
Return-path: <[email protected]>
Received: from mail-qa0-f51.google.com ([209.85.216.51])
	by buxtehude.debian.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:128)
	(Exim 4.80)
	(envelope-from <[email protected]>)
	id 1XDCZV-00048x-Np
	for [email protected]; Fri, 01 Aug 2014 13:08:33 +0000
Received: by mail-qa0-f51.google.com with SMTP id k15so3768048qaq.38
        for <[email protected]>; Fri, 01 Aug 2014 06:08:27 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=mime-version:reply-to:in-reply-to:references:from:date:message-id
         :subject:to:cc:content-type;
        bh=q5+zPudVG/dm1UUj/4X+bkhQ9JCcan8GP6XQgq6oMC0=;
        b=WuJHUZIg2SmkqpmNy1x9YYUu/Ufx67DhtjT3vQtfdphR0pk3fglMrhE6hC5B8RYgXI
         awScBoCi5QK7nROcF2nNfr3L+jeTe85rzlxI3XIcGvt/u1AcLoCAVMBDees/IzfRTHCv
         eaE7p8oZ2ERUtY1oDV1rSVV2gGor/IBGwsSDI9NTMweOHjzf2i/eweo55d1EkRZ4Uqe0
         5qA5t+TiDF3pKmQDzj/oh1CpHQ95SFfBPF3rrUcfTMQ16v89LAZ0flbWh8aZDpby9IM/
         BmWu+d513muWr/NFLBAbMSUWAf/o7R9ts1LJ/ISnAcr5NZ9tkNloPWLs78xroVs1ju5+
         HFLg==
X-Received: by 10.140.33.200 with SMTP id j66mr8528596qgj.81.1406898507047;
 Fri, 01 Aug 2014 06:08:27 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.140.42.246 with HTTP; Fri, 1 Aug 2014 06:08:06 -0700 (PDT)
Reply-To: [email protected]
In-Reply-To: <[email protected]>
References: <[email protected]> <CAKgNAki86fRqeQS4oJQJWVvMUwwecSWVvkM7k1LO646TULJi_A@mail.gmail.com>
 <[email protected]> <CAKgNAkgp2ygOQ+hrqFRxVPWSLcMeDyyjT9zancqvEUnqZiDkAA@mail.gmail.com>
 <[email protected]>
From: "Michael Kerrisk (man-pages)" <[email protected]>
Date: Fri, 1 Aug 2014 15:08:06 +0200
Message-ID: <CAKgNAki0zOKss_FTZi3zRL2KT25LEWbfntpHnkp9x38RaqfP5g@mail.gmail.com>
Subject: Re: Bug#756602: printf(3) manpage: please document that %n can't
 include flags, width or precision
To: Jakub Wilk <[email protected]>
Cc: [email protected]
Content-Type: text/plain; charset=UTF-8
On Fri, Aug 1, 2014 at 12:46 PM, Jakub Wilk <[email protected]> wrote:
> * Michael Kerrisk <[email protected]>, 2014-08-01, 08:55:
>
>> [[
>> That argument shall be an
>> .I "int\ *",
>> or variant whose size matches the (optionally)
>> supplied integer length modifier.
>> ]]
>
>
> Looks good to me, thanks!
>
> Now I noticed that in the "The length modifier" subsection, the n conversion
> is mentioned only in the descriptions of hh, h, l, and ll. Could we make it
> more consistent?


I applied the below.

Thanks,

Michael

diff --git a/man3/printf.3 b/man3/printf.3
index 47fdf2c..47fa149 100644
--- a/man3/printf.3
+++ b/man3/printf.3
@@ -527,6 +527,10 @@ A following integer conversion corresponds to an
 .I intmax_t
 or
 .I uintmax_t
+argument, or a following
+.B n
+conversion corresponds to a pointer to an
+.I intmax_t
 argument.
 .TP
 .B z
@@ -534,6 +538,10 @@ A following integer conversion corresponds to a
 .I size_t
 or
 .I ssize_t
+argument, or a following
+.B n
+conversion corresponds to a pointer to a
+.I size_t
 argument.
 .\" (Linux libc5 has
 .\" .B Z
@@ -543,6 +551,10 @@ argument.
 .B t
 A following integer conversion corresponds to a
 .I ptrdiff_t
+argument, or a following
+.B n
+conversion corresponds to a pointer to a
+.I ptrdiff_t
 argument.
 .PP
 SUSv2 knows about only the length modifiers



Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Sun Sep 22 01:44:16 2024; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.