Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Jan 2006 08:13:47 GMT
From:      Intron <intron@intron.ac>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/91262: A small patch to SSH2
Message-ID:  <200601030813.k038Dl82008811@www.freebsd.org>
Resent-Message-ID: <200601030820.k038K3FZ014497@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         91262
>Category:       ports
>Synopsis:       A small patch to SSH2
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jan 03 08:20:03 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Intron
>Release:        7.0-CURRENT
>Organization:
China
>Environment:
FreeBSD celeron.intron.ac 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Thu Nov 10 18:26:33 CST 2005 root@celeron:/usr/obj/usr/src/sys/my i386
>Description:
This small patch makes sftp2 and scp2 display transmission progress properly.
Otherwise, the progress display is buffered and not up to time.
>How-To-Repeat:
              
>Fix:
Put this patch "patch-apps::ssh::sshfilecopy.c" into 
/usr/ports/security/ssh2/files/.


--- apps/ssh/sshfilecopy.c.orig	Wed Dec  3 21:17:25 2003
+++ apps/ssh/sshfilecopy.c	Wed Dec 28 11:50:08 2005
@@ -908,6 +908,8 @@
           (int) (100.0 * (double) (SshInt64)written_bytes /
                  (SshInt64) attrs->size) : 100);
 
+  fflush(stdout);
+
   ssh_xfree(file_name);
   
   if (finished)
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200601030813.k038Dl82008811>