version 1.17, 1997/01/27 20:44:14 |
version 1.18, 1997/02/04 03:39:11 |
|
|
getloginname(); |
getloginname(); |
} |
} |
rootlogin = 0; |
rootlogin = 0; |
#if 1 /* Why should anyone with a root instance be able to be root here? */ |
|
|
#if defined(KERBEROS) || defined(KERBEROS5) |
|
/* |
|
* Why should anyone with a root instance be able |
|
* to be root here? |
|
*/ |
instance = ""; |
instance = ""; |
#else |
#endif |
#ifdef KERBEROS |
#ifdef KERBEROS |
if ((instance = strchr(username, '.')) != NULL) { |
if ((instance = strchr(username, '.')) != NULL) { |
if (strncmp(instance, ".root", 5) == 0) |
if (strncmp(instance, ".root", 5) == 0) |
|
|
*instance++ = '\0'; |
*instance++ = '\0'; |
} else |
} else |
instance = ""; |
instance = ""; |
#endif |
|
#endif |
#endif |
if (strlen(username) > UT_NAMESIZE) |
if (strlen(username) > UT_NAMESIZE) |
username[UT_NAMESIZE] = '\0'; |
username[UT_NAMESIZE] = '\0'; |