(main): return the return value from simple_execvp
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13162 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -760,14 +760,16 @@ main (int argc, char **argv)
|
|||||||
if(do_afslog && k_hasafs())
|
if(do_afslog && k_hasafs())
|
||||||
krb5_afslog(context, ccache, NULL, NULL);
|
krb5_afslog(context, ccache, NULL, NULL);
|
||||||
if(argc > 1) {
|
if(argc > 1) {
|
||||||
simple_execvp(argv[1], argv+1);
|
ret = simple_execvp(argv[1], argv+1);
|
||||||
krb5_cc_destroy(context, ccache);
|
krb5_cc_destroy(context, ccache);
|
||||||
_krb5_krb_dest_tkt(context, krb4_cc_name);
|
_krb5_krb_dest_tkt(context, krb4_cc_name);
|
||||||
if(k_hasafs())
|
if(k_hasafs())
|
||||||
k_unlog();
|
k_unlog();
|
||||||
} else
|
} else {
|
||||||
krb5_cc_close (context, ccache);
|
krb5_cc_close (context, ccache);
|
||||||
|
ret = 0;
|
||||||
|
}
|
||||||
krb5_free_principal(context, principal);
|
krb5_free_principal(context, principal);
|
||||||
krb5_free_context (context);
|
krb5_free_context (context);
|
||||||
return 0;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user