From 525e22306ea63c50a7746a069fe21ef4d8cbfe1c Mon Sep 17 00:00:00 2001 From: Boshi Lian Date: Fri, 2 Sep 2016 12:48:08 -0700 Subject: [PATCH] fix cherry-pick typo --- sshpiperd/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sshpiperd/config.go b/sshpiperd/config.go index 6840f037..e88c2421 100644 --- a/sshpiperd/config.go +++ b/sshpiperd/config.go @@ -87,7 +87,7 @@ func initConfig() { pflag.StringVarP(&config.Challenger, "challenger", "c", "", "Additional challenger name, e.g. pam, emtpy for no additional challenge") pflag.StringVar(&config.Logfile, "log", "", "Logfile path. Leave emtpy or any error occurs will fall back to stdout") pflag.BoolVar(&config.AllowBadUsername, "allow_bad_username", false, "disable username check while search the working dir") - mflag.BoolVar(&config.NoCheckPerm, -no_check_perm, false, "Disable 0400 checking when using files in the working dir") + pflag.BoolVar(&config.NoCheckPerm, "no_check_perm", false, "Disable 0400 checking when using files in the working dir") pflag.BoolVarP(&config.ShowHelp, "help", "h", false, "Print help and exit") pflag.BoolVar(&config.ShowVersion, "version", false, "Print version and exit")