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")