This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-net.git
The following commit(s) were added to refs/heads/master by this push: new aefe84f0 Typos aefe84f0 is described below commit aefe84f0c03624132cef75552d2626f4c99f49a5 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Wed Jul 19 09:45:20 2023 -0400 Typos --- src/main/java/org/apache/commons/net/examples/ftp/TFTPExample.java | 6 +++--- src/test/java/org/apache/commons/net/tftp/TFTPServer.java | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/org/apache/commons/net/examples/ftp/TFTPExample.java b/src/main/java/org/apache/commons/net/examples/ftp/TFTPExample.java index 10b15781..c65c6b54 100644 --- a/src/main/java/org/apache/commons/net/examples/ftp/TFTPExample.java +++ b/src/main/java/org/apache/commons/net/examples/ftp/TFTPExample.java @@ -31,15 +31,15 @@ import org.apache.commons.net.tftp.TFTPClient; import org.apache.commons.net.tftp.TFTPPacket; /** - * This is an example of a simple Java tftp client. Notice how all the code is really just argument processing and error handling. + * This is an example of a simple Java TFTP client. Notice how all the code is really just argument processing and error handling. * <p> - * Usage: tftp [options] hostname localfile remotefile hostname - The name of the remote host, with optional :port localfile - The name of the local file to + * Usage: TFTPExample [options] hostname localfile remotefile hostname - The name of the remote host, with optional :port localfile - The name of the local file to * send or the name to use for the received file remotefile - The name of the remote file to receive or the name for the remote server to use to name the local * file being sent. options: (The default is to assume -r -b) -s Send a local file -r Receive a remote file -a Use ASCII transfer mode -b Use binary transfer * mode */ public final class TFTPExample { - static final String USAGE = "Usage: tftp [options] hostname localfile remotefile\n\n" + "hostname - The name of the remote host [:port]\n" + static final String USAGE = "Usage: TFTPExample [options] hostname localfile remotefile\n\n" + "hostname - The name of the remote host [:port]\n" + "localfile - The name of the local file to send or the name to use for\n" + "\tthe received file\n" + "remotefile - The name of the remote file to receive or the name for\n" + "\tthe remote server to use to name the local file being sent.\n\n" + "options: (The default is to assume -r -b)\n" + "\t-t timeout in seconds (default 60s)\n" + "\t-s Send a local file\n" diff --git a/src/test/java/org/apache/commons/net/tftp/TFTPServer.java b/src/test/java/org/apache/commons/net/tftp/TFTPServer.java index 1a994896..1e8c5695 100644 --- a/src/test/java/org/apache/commons/net/tftp/TFTPServer.java +++ b/src/test/java/org/apache/commons/net/tftp/TFTPServer.java @@ -93,14 +93,14 @@ public class TFTPServer implements Runnable, AutoCloseable { } /* - * Utility method to make sure that paths provided by tftp clients do not get outside of the serverRoot directory. + * Utility method to make sure that paths provided by TFTP clients do not get outside of the serverRoot directory. */ private File buildSafeFile(final File serverDirectory, final String fileName, final boolean createSubDirs) throws IOException { File temp = new File(serverDirectory, fileName); temp = temp.getCanonicalFile(); if (!isSubdirectoryOf(serverDirectory, temp)) { - throw new IOException("Cannot access files outside of tftp server root."); + throw new IOException("Cannot access files outside of TFTP server root."); } // ensure directory exists (if requested)