Slightly changed semantics of encryption and autologin options:
-a if for autologin; -a and -x gives you encryption as well, this also happens if you don't specify anything. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@44 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -137,11 +137,13 @@ main(argc, argv)
|
||||
user = NULL;
|
||||
|
||||
rlogin = (strncmp(prompt, "rlog", 4) == 0) ? '~' : _POSIX_VDISABLE;
|
||||
#ifdef AUTHENTICATION
|
||||
autologin = 1;
|
||||
#else
|
||||
|
||||
/*
|
||||
* if AUTHENTICATION and ENCRYPTION is set autologin will be
|
||||
* se to true after the getopt switch; unless the -K option is
|
||||
* passed
|
||||
*/
|
||||
autologin = -1;
|
||||
#endif
|
||||
|
||||
while ((ch = getopt(argc, argv, "8EKLS:X:acde:fFk:l:n:rt:x")) != EOF) {
|
||||
switch(ch) {
|
||||
@@ -287,7 +289,7 @@ main(argc, argv)
|
||||
}
|
||||
}
|
||||
|
||||
if (autologin == -1) { /* esc@magic.fi; force */
|
||||
if (autologin == -1) { /* esc@magic.fi; force */
|
||||
#if defined(AUTHENTICATION)
|
||||
autologin = 1;
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user