ports/91262: A small patch to SSH2

Intron intron at intron.ac
Tue Jan 3 08:20:10 UTC 2006


>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 at 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:



More information about the freebsd-ports-bugs mailing list