NetBSD Problem Report #55693

From gson@gson.org  Sat Oct  3 20:02:15 2020
Return-Path: <gson@gson.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 0054F1A9217
	for <gnats-bugs@gnats.NetBSD.org>; Sat,  3 Oct 2020 20:02:14 +0000 (UTC)
Message-Id: <20201003200209.B90CE253EDA@guava.gson.org>
Date: Sat,  3 Oct 2020 23:02:09 +0300 (EEST)
From: gson@gson.org (Andreas Gustafsson)
Reply-To: gson@gson.org (Andreas Gustafsson)
To: gnats-bugs@NetBSD.org
Subject: factor(6) lists factors in wrong order
X-Send-Pr-Version: 3.95

>Number:         55693
>Category:       bin
>Synopsis:       factor(6) lists factors in wrong order
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Oct 03 20:05:00 +0000 2020
>Closed-Date:    Mon Oct 05 06:40:58 +0000 2020
>Last-Modified:  Mon Oct 05 06:40:58 +0000 2020
>Originator:     Andreas Gustafsson
>Release:        NetBSD 9.0; also -current
>Organization:
>Environment:
System: NetBSD
Architecture: x86_64
Machine: amd64
>Description:

The factor(6) man page says "Factors are listed in ascending order",
but in the following case, that is not true for the last two factors:

  $ /usr/games/factor 7777777777777777777777777777
  7777777777777777777777777777: 7 11 29 101 239 281 4649 121499449 909091

>How-To-Repeat:

See above.

>Fix:

>Release-Note:

>Audit-Trail:
From: "Christos Zoulas" <christos@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/55693 CVS commit: src/games/factor
Date: Sat, 3 Oct 2020 18:27:00 -0400

 Module Name:	src
 Committed By:	christos
 Date:		Sat Oct  3 22:27:00 UTC 2020

 Modified Files:
 	src/games/factor: factor.6 factor.c

 Log Message:
 PR/55693: Andreas Gustafsson: factor(6) lists factors in wrong order
 Sync with FreeBSD and change their -h (that printed hex) to -x because
 we were already using -h.


 To generate a diff of this commit:
 cvs rdiff -u -r1.14 -r1.15 src/games/factor/factor.6
 cvs rdiff -u -r1.29 -r1.30 src/games/factor/factor.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->feedback
State-Changed-By: jakllsch@NetBSD.org
State-Changed-When: Sun, 04 Oct 2020 11:45:41 +0000
State-Changed-Why:
does the commit fix the issue?


State-Changed-From-To: feedback->closed
State-Changed-By: gson@NetBSD.org
State-Changed-When: Mon, 05 Oct 2020 06:40:58 +0000
State-Changed-Why:
Confirmed fixed, thanks.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.