check for local mode
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14008 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -484,14 +484,22 @@ doit(const char *filename, int merge)
|
||||
}
|
||||
|
||||
|
||||
extern int local_flag;
|
||||
|
||||
static int
|
||||
loadit(int merge, int argc, char **argv)
|
||||
{
|
||||
const char *myname = merge ? "merge" : "load";
|
||||
if(!local_flag) {
|
||||
krb5_warnx(context, "%s is only available in local (-l) mode", myname);
|
||||
return 0;
|
||||
}
|
||||
|
||||
if(argc != 1) {
|
||||
printf("%s file", merge ? "merge" : "load");
|
||||
printf("%s file", myname);
|
||||
return 0;
|
||||
}
|
||||
doit(argv[optind], 0);
|
||||
doit(argv[optind], merge);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user