[kup] 09/18: Make sure we use sanitized KUP_SUBCMD

debian-kernel at lists.debian.org debian-kernel at lists.debian.org
Sun Apr 9 02:47:30 UTC 2017


This is an automated email from the git hooks/post-receive script.

benh pushed a commit to branch master
in repository kup.

commit 0ff2c2a5d25046a8f0bb8da431449206c8d702bc
Author: Konstantin Ryabitsev <konstantin at linuxfoundation.org>
Date:   Tue Mar 28 14:01:18 2017 -0400

    Make sure we use sanitized KUP_SUBCMD
    
    Otherwise we break the -T mode
    
    Signed-off-by: Konstantin Ryabitsev <konstantin at linuxfoundation.org>
---
 kup | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kup b/kup
index f9e620b..f3a5d0f 100755
--- a/kup
+++ b/kup
@@ -285,7 +285,7 @@ sub setup_output()
 				die "$0: suspicious KUP_SUBCMD\n";
 			}
 			# Add the subcommand for the receiving server
-			$rsh .= " " . $opt{'subcmd'}
+			$rsh .= " \Q$1";
 		}
 		open(STDOUT, '|-', $rsh)
 			or die "$0: cannot execute rsh command ", $rsh, "\n";

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/kernel/kup.git



More information about the Kernel-svn-changes mailing list