From 5a827287382b02a1f5f4e39c4024a0c41760eb11 Mon Sep 17 00:00:00 2001 From: CharlesCNorton <135471798+CharlesCNorton@users.noreply.github.com> Date: Tue, 18 Jun 2024 17:17:25 -0400 Subject: [PATCH] fix: terminology from "symbol link" to "symbolic link" Corrected the terminology from "symbol link" to "symbolic link" in the following instances for clarity and accuracy: 1. In the flags definition: Changed "Always follow symbol link in SRC_PATH" to "Always follow symbolic link in SRC_PATH" 2. In the client request comment: Changed "if client requests to follow symbol link, then must decide target file to be copied" to "if client requests to follow symbolic link, then must decide target file to be copied" --- cli/command/container/cp.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/command/container/cp.go b/cli/command/container/cp.go index b361e2678cdc..dc4828f7c673 100644 --- a/cli/command/container/cp.go +++ b/cli/command/container/cp.go @@ -159,7 +159,7 @@ func NewCopyCommand(dockerCli command.Cli) *cobra.Command { } flags := cmd.Flags() - flags.BoolVarP(&opts.followLink, "follow-link", "L", false, "Always follow symbol link in SRC_PATH") + flags.BoolVarP(&opts.followLink, "follow-link", "L", false, "Always follow symbolic link in SRC_PATH") flags.BoolVarP(&opts.copyUIDGID, "archive", "a", false, "Archive mode (copy all uid/gid information)") flags.BoolVarP(&opts.quiet, "quiet", "q", false, "Suppress progress output during copy. Progress output is automatically suppressed if no terminal is attached") return cmd @@ -227,7 +227,7 @@ func copyFromContainer(ctx context.Context, dockerCli command.Cli, copyConfig cp } client := dockerCli.Client() - // if client requests to follow symbol link, then must decide target file to be copied + // if client requests to follow symbolic link, then must decide target file to be copied var rebaseName string if copyConfig.followLink { srcStat, err := client.ContainerStatPath(ctx, copyConfig.container, srcPath)