From owner-freebsd-ports Sun Sep 19 10:20:30 1999 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id D757F14CD3 for ; Sun, 19 Sep 1999 10:20:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id KAA06590; Sun, 19 Sep 1999 10:20:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from point.osg.gov.bc.ca (point.osg.gov.bc.ca [142.32.102.44]) by hub.freebsd.org (Postfix) with ESMTP id 3AD8815060 for ; Sun, 19 Sep 1999 10:14:05 -0700 (PDT) (envelope-from cy@cschuber.net.gov.bc.ca) Received: (from daemon@localhost) by point.osg.gov.bc.ca (8.8.7/8.8.8) id KAA16365 for ; Sun, 19 Sep 1999 10:14:05 -0700 Received: from cschuber.net.gov.bc.ca(142.31.240.113), claiming to be "cwsys.cwsent.com" via SMTP by point.osg.gov.bc.ca, id smtpda16363; Sun Sep 19 10:13:47 1999 Received: (from cy@localhost) by cwsys.cwsent.com (8.9.3/8.9.1) id KAA32541; Sun, 19 Sep 1999 10:06:36 -0700 (PDT) Message-Id: <199909191706.KAA32541@cwsys.cwsent.com> Date: Sun, 19 Sep 1999 10:06:36 -0700 (PDT) From: cschuber@uumail.gov.bc.ca Reply-To: cschuber@uumail.gov.bc.ca To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: ports/13823: stat port not formatting device node Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 13823 >Category: ports >Synopsis: stat port not formatting device node >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Sep 19 10:20:01 PDT 1999 >Closed-Date: >Last-Modified: >Originator: Cy Schubert >Release: FreeBSD 3.3-RELEASE i386 >Organization: ITSD Province of BC >Environment: FreeBSD cwsys 3.3-RELEASE FreeBSD 3.3-RELEASE #0: Fri Sep 17 06:21:47 PDT 1999 root@:/opt2/cvs-330/src/sys/compile/CWSYS i386 >Description: Stat port prints device node as a %d of st_dev. This patch prints the major and minor numbers as an ancient version of stat once did, as a majornumber,minornumber. >How-To-Repeat: Run stat then apply patch and run it again to see the difference. >Fix: diff -urPN /opt/CVSup/usr/ports/sysutils/stat/patches/patch-aa stat-990919/patches/patch-aa --- /opt/CVSup/usr/ports/sysutils/stat/patches/patch-aa Wed Dec 31 16:00:00 1969 +++ stat-990919/patches/patch-aa Sun Sep 19 09:56:24 1999 @@ -0,0 +1,11 @@ +--- stat.fmt.c.orig Sun Feb 16 05:12:33 1997 ++++ stat.fmt.c Sun Sep 19 09:55:50 1999 +@@ -440,7 +440,7 @@ + break; + + case 'd': /* The Device */ +- sprintf(auxbuf, "%ld", ip -> st_dev); ++ sprintf(auxbuf, "%2d,%-2d", major(ip -> st_dev), minor(ip -> st_dev)); + bufp = fmt_app(auxbuf, bufp); + break; + >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message