move "setpag if (argc < 1)" to common path
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13851 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -766,14 +766,15 @@ main (int argc, char **argv)
|
|||||||
krb4_cc_name = NULL;
|
krb4_cc_name = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (k_hasafs ())
|
|
||||||
k_setpag();
|
|
||||||
} else
|
} else
|
||||||
ret = krb5_cc_default (context, &ccache);
|
ret = krb5_cc_default (context, &ccache);
|
||||||
}
|
}
|
||||||
if (ret)
|
if (ret)
|
||||||
krb5_err (context, 1, ret, "resolving credentials cache");
|
krb5_err (context, 1, ret, "resolving credentials cache");
|
||||||
|
|
||||||
|
if(argc > 1 && k_hasafs ())
|
||||||
|
k_setpag();
|
||||||
|
|
||||||
if (lifetime) {
|
if (lifetime) {
|
||||||
int tmp = parse_time (lifetime, "s");
|
int tmp = parse_time (lifetime, "s");
|
||||||
if (tmp < 0)
|
if (tmp < 0)
|
||||||
|
Reference in New Issue
Block a user