summaryrefslogtreecommitdiff
path: root/kerberosIV
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>1998-03-24 03:05:51 +0000
committerArtur Grabowski <art@cvs.openbsd.org>1998-03-24 03:05:51 +0000
commit0416fc5ed07166b236769b10218792af6a87c14d (patch)
treee84085cad75a204b90e9c576782252eda59aff1a /kerberosIV
parentfb4fcea3e1bd5972e6afad8a4d0986817861b8e5 (diff)
add compatibility for Arla.
(this change was done using Arla)
Diffstat (limited to 'kerberosIV')
-rw-r--r--kerberosIV/kafs/common.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/kerberosIV/kafs/common.c b/kerberosIV/kafs/common.c
index 8a35d4dea8b..804bb4f027e 100644
--- a/kerberosIV/kafs/common.c
+++ b/kerberosIV/kafs/common.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: common.c,v 1.3 1997/12/12 11:46:32 art Exp $ */
+/* $OpenBSD: common.c,v 1.4 1998/03/24 03:05:50 art Exp $ */
/* $KTH: common.c,v 1.3 1997/11/03 20:35:24 bg Exp $ */
/*
@@ -217,6 +217,8 @@ _kafs_afslog_all_local_cells(kafs_data *data, uid_t uid)
}
find_cells(_PATH_THESECELLS, &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);
while(index > 0) {
@@ -247,14 +249,12 @@ realm_of_cell(kafs_data *data, const char *cell, char **realm)
char *p;
int ret = -1;
- if ((F = fopen(_PATH_CELLSERVDB, "r")))
- {
- while (fgets(buf, sizeof(buf), F))
- {
+ if ((F = fopen(_PATH_CELLSERVDB, "r"))
+ || (F = fopen(_PATH_ARLA_CELLSERVDB, "r"))) {
+ while (fgets(buf, sizeof(buf), F)) {
if (buf[0] != '>')
continue; /* Not a cell name line, try next line */
- if (strncmp(buf + 1, cell, strlen(cell)) == 0)
- {
+ if (strncmp(buf + 1, cell, strlen(cell)) == 0) {
/*
* We found the cell name we're looking for.
* Read next line on the form ip-address '#' hostname