From grog@lemis.com  Fri Mar 20 22:18:37 1998
Received: from allegro.lemis.com (allegro.lemis.com [192.109.197.134])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA27619
          for <FreeBSD-gnats-submit@freebsd.org>; Fri, 20 Mar 1998 22:18:34 -0800 (PST)
          (envelope-from grog@lemis.com)
Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137])
	by allegro.lemis.com (8.8.7/8.8.5) with ESMTP id QAA16233
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 21 Mar 1998 16:48:32 +1030 (CST)
Received: (from grog@localhost)
          by freebie.lemis.com (8.8.8/8.8.7) id QAA26685;
          Sat, 21 Mar 1998 16:48:31 +1030 (CST)
          (envelope-from grog)
Message-Id: <199803210618.QAA26685@freebie.lemis.com>
Date: Sat, 21 Mar 1998 16:48:31 +1030 (CST)
From: Greg Lehey <grog@lemis.com>
Reply-To: grog@lemis.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: Bug in ytree port
X-Send-Pr-Version: 3.2

>Number:         6079
>Category:       ports
>Synopsis:       ytree's expanded file display does not work
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    steve
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 20 22:20:02 PST 1998
>Closed-Date:    Sat Mar 28 06:30:55 PST 1998
>Last-Modified:  Sat Mar 28 06:31:19 PST 1998
>Originator:     Greg Lehey
>Release:        Non-specific, tested on FreeBSD 3.0-CURRENT i386
>Organization:
LEMIS
>Environment:

	No specific requirements

>Description:

	The port of ytree does not display files correctly in one of
	the formats, where the modification stamp follows the file
	size.  The modification timestamp is displayed as "(null)"

>How-To-Repeat:

	Run ytree.  Select the file window and press ^F for the
	extended file name display.  All modification timestamps will
	be shown as "(null)".

>Fix:

	Patch  dirwin.c and filewin.c:



--- dirwin.c    Sat Mar 21 16:26:20 1998
+++ dirwin.c.orig       Wed Sep  3 05:33:47 1997
@@ -163,7 +163,7 @@
                     ERROR_MSG("malloc() Failed*Abort");
                     exit(1);
                  }
-                 (void) strcpy( format, "%10s %3d %7qd %12s");
+                 (void) strcpy( format, "%10s %3d %7d %12s");
                  (void) sprintf( line_buffer, format, attributes,
                                  de_ptr->stat_struct.st_nlink,
                                  de_ptr->stat_struct.st_size,
--- filewin.c   Sat Mar 21 16:26:03 1998
+++ filewin.c.orig      Sat Mar 21 16:43:38 1998
@@ -535,7 +535,7 @@
                     }
                    else
                    {
-                     (void) sprintf( format, "%%c %%%c%ds %%10s %%3d %%7qd %%12s", 
+                     (void) sprintf( format, "%%c %%%c%ds %%10s %%3d %%7d %%12s", 
                                       justify,
                                      max_filename_len 
                                    );
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->analyzed 
State-Changed-By: steve 
State-Changed-When: Sun Mar 22 11:54:35 PST 1998 
State-Changed-Why:  
Patch looks good. 


Responsible-Changed-From-To: gnats-admin->steve 
Responsible-Changed-By: steve 
Responsible-Changed-When: Sun Mar 22 11:54:35 PST 1998 
Responsible-Changed-Why:  
I will commit this as soon as the ports freeze is over. 
State-Changed-From-To: analyzed->closed 
State-Changed-By: steve 
State-Changed-When: Sat Mar 28 06:30:55 PST 1998 
State-Changed-Why:  
Suggested patch applied, thanks! 
>Unformatted:
