use print_version
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5478 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 1998 Kungliga Tekniska H<>gskolan
|
||||
* Copyright (c) 1997, 1998, 1999 Kungliga Tekniska H<>gskolan
|
||||
* (Royal Institute of Technology, Stockholm, Sweden).
|
||||
* All rights reserved.
|
||||
*
|
||||
@@ -192,8 +192,10 @@ main(int argc, char **argv)
|
||||
usage(1);
|
||||
if(help_flag)
|
||||
usage(0);
|
||||
if(version_flag)
|
||||
krb5_errx(context, 0, "%s", heimdal_version);
|
||||
if(version_flag) {
|
||||
print_version(NULL);
|
||||
exit(0);
|
||||
}
|
||||
if(unlog_flag){
|
||||
k_unlog();
|
||||
exit(0);
|
||||
|
@@ -242,11 +242,8 @@ pop_init(POP *p,int argcount,char **argmessage)
|
||||
exit(0);
|
||||
}
|
||||
if(version_flag){
|
||||
#ifdef KRB5
|
||||
krb5_errx(p->context, 0, "%s", heimdal_version);
|
||||
#else
|
||||
errx(0, "%s", VERSION);
|
||||
#endif
|
||||
print_version(NULL);
|
||||
exit(0);
|
||||
}
|
||||
|
||||
argcount -= optind;
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 1998 Kungliga Tekniska H<>gskolan
|
||||
* Copyright (c) 1997, 1998, 1999 Kungliga Tekniska H<>gskolan
|
||||
* (Royal Institute of Technology, Stockholm, Sweden).
|
||||
* All rights reserved.
|
||||
*
|
||||
@@ -78,8 +78,10 @@ common_setup(krb5_context *context, int *argc, char **argv,
|
||||
|
||||
if(help_flag)
|
||||
(*usage)(0, args, num_args);
|
||||
if(version_flag)
|
||||
krb5_errx(*context, 0, "%s", heimdal_version);
|
||||
if(version_flag) {
|
||||
print_version(NULL);
|
||||
exit(0);
|
||||
}
|
||||
|
||||
if(port_str){
|
||||
struct servent *s = roken_getservbyname(port_str, "tcp");
|
||||
|
Reference in New Issue
Block a user