complain if there's no realm name specified
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9045 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997 - 2000 Kungliga Tekniska H<>gskolan
|
* Copyright (c) 1997-2000 Kungliga Tekniska H<>gskolan
|
||||||
* (Royal Institute of Technology, Stockholm, Sweden).
|
* (Royal Institute of Technology, Stockholm, Sweden).
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
@@ -97,7 +97,7 @@ static int num_args = sizeof(args) / sizeof(args[0]);
|
|||||||
static void
|
static void
|
||||||
usage(void)
|
usage(void)
|
||||||
{
|
{
|
||||||
arg_printusage (args, num_args, "init", "realm");
|
arg_printusage (args, num_args, "init", "realm...");
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
@@ -119,6 +119,11 @@ init(int argc, char **argv)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(argc - optind < 1) {
|
||||||
|
usage();
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
if (realm_max_life) {
|
if (realm_max_life) {
|
||||||
if (str2deltat (realm_max_life, &max_life) != 0) {
|
if (str2deltat (realm_max_life, &max_life) != 0) {
|
||||||
krb5_warnx (context, "unable to parse `%s'", realm_max_life);
|
krb5_warnx (context, "unable to parse `%s'", realm_max_life);
|
||||||
|
Reference in New Issue
Block a user