(_kafs_afslog_all_local_cells): Try _PATH_ARLA_*
(_realm_of_cell): Try _PATH_ARLA_CELLSERVDB git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4709 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -231,6 +231,8 @@ _kafs_afslog_all_local_cells(kafs_data *data, uid_t uid)
|
|||||||
}
|
}
|
||||||
find_cells(_PATH_THESECELLS, &cells, &index);
|
find_cells(_PATH_THESECELLS, &cells, &index);
|
||||||
find_cells(_PATH_THISCELL, &cells, &index);
|
find_cells(_PATH_THISCELL, &cells, &index);
|
||||||
|
find_cells(_PATH_ARLA_THESECELLS, &cells, &index);
|
||||||
|
find_cells(_PATH_ARLA_THISCELL, &cells, &index);
|
||||||
|
|
||||||
ret = afslog_cells(data, cells, index, uid);
|
ret = afslog_cells(data, cells, index, uid);
|
||||||
while(index > 0)
|
while(index > 0)
|
||||||
@@ -258,7 +260,8 @@ realm_of_cell(kafs_data *data, const char *cell, char **realm)
|
|||||||
char *p;
|
char *p;
|
||||||
int ret = -1;
|
int ret = -1;
|
||||||
|
|
||||||
if ((F = fopen(_PATH_CELLSERVDB, "r"))) {
|
if ((F = fopen(_PATH_CELLSERVDB, "r"))
|
||||||
|
|| (F = fopen(_PATH_ARLA_CELLSERVDB, "r"))) {
|
||||||
while (fgets(buf, sizeof(buf), F)) {
|
while (fgets(buf, sizeof(buf), F)) {
|
||||||
if (buf[0] != '>')
|
if (buf[0] != '>')
|
||||||
continue; /* Not a cell name line, try next line */
|
continue; /* Not a cell name line, try next line */
|
||||||
|
Reference in New Issue
Block a user