aboutsummaryrefslogtreecommitdiff
path: root/src/util/profile
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/profile')
-rw-r--r--src/util/profile/ChangeLog32
-rw-r--r--src/util/profile/Makefile.in2
-rw-r--r--src/util/profile/krb5.conf8
-rw-r--r--src/util/profile/prof_err.et6
-rw-r--r--src/util/profile/prof_parse.c6
-rw-r--r--src/util/profile/profile.pbexp24
6 files changed, 72 insertions, 6 deletions
diff --git a/src/util/profile/ChangeLog b/src/util/profile/ChangeLog
index 172d7ac..9a1da21 100644
--- a/src/util/profile/ChangeLog
+++ b/src/util/profile/ChangeLog
@@ -1,3 +1,35 @@
+2002-02-28 Alexandra Ellwood <lxs@mit.edu>
+ * profile.pbexp: Restrict Mac OS X export list to public functions
+
+2001-11-05 Tom Yu <tlyu@mit.edu>
+
+ * Makefile.in (LIBMINOR): Bump due to error table changes.
+
+2001-09-25 Ken Raeburn <raeburn@mit.edu>
+
+ * prof_err.et (PROF_BAD_BOOLEAN, PROF_BAD_INTEGER): New error
+ codes.
+
+2001-02-02 Tom Yu <tlyu@mit.edu>
+
+ * krb5.conf: Test with trailing whitespace on "default_realm"
+ line. [pullup from trunk]
+
+ * krb5.conf: Test with a space after ']' and '{' [pullup from trunk]
+
+ * prof_parse.c (parse_std_line): Spaces after '{' or ']' should
+ not be a fatal error. This is a common lossage in krb5.conf files.
+ [pullup from trunk]
+
+2000-10-7 Miro Jurisic <meeroh@mit.edu>
+
+ * et.pbexp: Added the Mach-O initializer function
+
+2000-10-7 Miro Jurisic <meeroh@mit.edu>
+
+ * et.pbexp: Added the Mac OS X export file (hopefully temporary,
+ until Apple fixes their tools to use the same format as Mac OS 9)
+
1999-10-26 Tom Yu <tlyu@mit.edu>
* Makefile.in: Clean up usage of CFLAGS, CPPFLAGS, DEFS, DEFINES,
diff --git a/src/util/profile/Makefile.in b/src/util/profile/Makefile.in
index 3955ca8..fa3f6db 100644
--- a/src/util/profile/Makefile.in
+++ b/src/util/profile/Makefile.in
@@ -40,7 +40,7 @@ MLIBS = -lcom_err $(GEN_LIB)
LIB=profile
LIBMAJOR=1
-LIBMINOR=0
+LIBMINOR=1
SHLIB_EXPDEPS = $(TOPLIBD)/libcom_err$(SHLIBEXT)
SHLIB_EXPLIBS = -lcom_err
SHLIB_DIRS = -L$(TOPLIBD)
diff --git a/src/util/profile/krb5.conf b/src/util/profile/krb5.conf
index 01eb66c..19c59c6 100644
--- a/src/util/profile/krb5.conf
+++ b/src/util/profile/krb5.conf
@@ -1,5 +1,5 @@
[libdefaults]
- default_realm = ATHENA.MIT.EDU
+ default_realm = ATHENA.MIT.EDU
default_tgs_enctypes = des-cbc-crc
default_tkt_enctypes = des-cbc-crc
krb4_config = /etc/athena/krb.conf
@@ -8,8 +8,8 @@
kdc_timesync = 1
ccache_type = 4
-[realms]
- ATHENA.MIT.EDU = {
+[realms]
+ ATHENA.MIT.EDU = {
# kdc = kerberos-2000.mit.edu
kdc = kerberos.mit.edu:88
kdc = kerberos-1.mit.edu:88
@@ -17,7 +17,7 @@
kdc = kerberos-3.mit.edu:88
admin_server = kerberos.mit.edu
default_domain = mit.edu
- }
+ }
MEDIA-LAB.MIT.EDU = {
kdc = kerberos.media.mit.edu
admin_server = kerberos.media.mit.edu
diff --git a/src/util/profile/prof_err.et b/src/util/profile/prof_err.et
index e6e35db..dc248f4 100644
--- a/src/util/profile/prof_err.et
+++ b/src/util/profile/prof_err.et
@@ -54,4 +54,10 @@ error_code PROF_FAIL_OPEN, "Couldn't open profile file"
#
error_code PROF_EXISTS, "Section already exists"
+#
+# generated by prof_get.c
+#
+error_code PROF_BAD_BOOLEAN, "Invalid boolean value"
+error_code PROF_BAD_INTEGER, "Invalid integer value"
+
end
diff --git a/src/util/profile/prof_parse.c b/src/util/profile/prof_parse.c
index 0e3cffe..7e8bcb8 100644
--- a/src/util/profile/prof_parse.c
+++ b/src/util/profile/prof_parse.c
@@ -130,6 +130,10 @@ static errcode_t parse_std_line(line, state)
profile_make_node_final(state->current_section);
cp++;
}
+ /*
+ * A space after ']' should not be fatal
+ */
+ cp = skip_over_blanks(cp);
if (*cp)
return PROF_SECTION_SYNTAX;
return 0;
@@ -169,7 +173,7 @@ static errcode_t parse_std_line(line, state)
} else if (value[0] == 0) {
do_subsection++;
state->state = STATE_GET_OBRACE;
- } else if (value[0] == '{' && value[1] == 0)
+ } else if (value[0] == '{' && *(skip_over_blanks(value+1)) == 0)
do_subsection++;
else {
cp = value + strlen(value) - 1;
diff --git a/src/util/profile/profile.pbexp b/src/util/profile/profile.pbexp
new file mode 100644
index 0000000..427a9d4
--- /dev/null
+++ b/src/util/profile/profile.pbexp
@@ -0,0 +1,24 @@
+#
+# _profile library Macintosh export file
+#
+# $Header$
+
+_profile_init
+_profile_init_path
+_profile_flush
+_profile_abandon
+_profile_release
+_profile_get_values
+_profile_free_list
+_profile_get_string
+_profile_get_integer
+_profile_get_relation_names
+_profile_get_subsection_names
+_profile_iterator_create
+_profile_iterator_free
+_profile_iterator
+_profile_release_string
+_profile_update_relation
+_profile_clear_relation
+_profile_rename_section
+_profile_add_relation