[prev in list] [next in list] [prev in thread] [next in thread] 

List:       proftpd-committers
Subject:    [ProFTPD-committers] CVS: proftpd/utils ftptop.c, 1.32,
From:       TJ Saunders <castaglia () users ! sourceforge ! net>
Date:       2007-05-22 21:21:28
Message-ID: E1HqbnM-0008Jg-6f () sc8-pr-cvs1 ! sourceforge ! net
[Download RAW message or body]

Update of /cvsroot/proftp/proftpd/utils
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31885/utils

Modified Files:
	ftptop.c ftptop.1.in 
Log Message:

Bug#2923 - ftptop display flickers if delay is greater than 25 seconds.  Simply
accept only delay values between zero and 15 seconds.


Index: ftptop.c
===================================================================
RCS file: /cvsroot/proftp/proftpd/utils/ftptop.c,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -r1.32 -r1.33
--- ftptop.c	22 Mar 2006 18:51:45 -0000	1.32
+++ ftptop.c	22 May 2007 21:21:25 -0000	1.33
@@ -320,6 +320,12 @@
           exit(1);
         }
 
+        if (delay > 15) {
+          fprintf(stderr, "%s: delay of 0-15 seconds only supported\n",
+            program);
+          exit(1);
+        }
+
         break;
 
       case 'f':

Index: ftptop.1.in
===================================================================
RCS file: /cvsroot/proftp/proftpd/utils/ftptop.1.in,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ftptop.1.in	4 Apr 2003 07:23:16 -0000	1.1
+++ ftptop.1.in	22 May 2007 21:21:25 -0000	1.2
@@ -24,7 +24,7 @@
 .TP
 .B \-d
 Specify the delay, in seconds, between display refreshes.  The default is 2
-seconds.
+seconds.  Only values between 0 and 15 seconds are accepted.
 .TP
 .BI \-f
 Specify the full path to proftpd's run\-time scoreboard file (configured


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
ProFTPD Committers Mailing List
proftpd-committers@proftpd.org
https://lists.sourceforge.net/lists/listinfo/proftp-committers
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic