summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEzra Peisach <epeisach@mit.edu>1995-04-25 01:19:00 +0000
committerEzra Peisach <epeisach@mit.edu>1995-04-25 01:19:00 +0000
commit095ca22f094589e8dc2ce8446779486e0fb4e655 (patch)
tree18051564e8351e8c7210d28efd5fb93d61817f3d /src
parent861e286d2e9b213c5ed03aabc1ecdfb8e1006807 (diff)
downloadkrb5-095ca22f094589e8dc2ce8446779486e0fb4e655.tar.gz
krb5-095ca22f094589e8dc2ce8446779486e0fb4e655.tar.xz
krb5-095ca22f094589e8dc2ce8446779486e0fb4e655.zip
* Makefile.in (all): Use ARADD to facilitate incremental
rebuilding of library. * configure.in: Add AC_PROG_ARCHIVE_ADD * prof_init.c (profile_get_values): If profile is null return NULL. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5467 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r--src/util/profile/ChangeLog10
-rw-r--r--src/util/profile/Makefile.in2
-rw-r--r--src/util/profile/configure.in1
-rw-r--r--src/util/profile/prof_init.c5
4 files changed, 17 insertions, 1 deletions
diff --git a/src/util/profile/ChangeLog b/src/util/profile/ChangeLog
index 89a08484c2..ee809ceaba 100644
--- a/src/util/profile/ChangeLog
+++ b/src/util/profile/ChangeLog
@@ -1,3 +1,13 @@
+Mon Apr 24 17:05:27 1995 Ezra Peisach <epeisach@kangaroo.mit.edu>
+
+ * Makefile.in (all): Use ARADD to facilitate incremental
+ rebuilding of library.
+
+ * configure.in: Add AC_PROG_ARCHIVE_ADD
+
+ * prof_init.c (profile_get_values): If profile is null return
+ NULL.
+
Sat Apr 22 01:25:58 1995 Theodore Y. Ts'o (tytso@dcl)
* Makefile.in: Rename profile.h.in to profile.hin to, make things
diff --git a/src/util/profile/Makefile.in b/src/util/profile/Makefile.in
index 6851a5be00..b13253823b 100644
--- a/src/util/profile/Makefile.in
+++ b/src/util/profile/Makefile.in
@@ -19,7 +19,7 @@ LIBS = ../et/libcom_err.a
all:: includes libprofile.a test_parse test_profile
libprofile.a: $(OBJS)
- $(ARCHIVE) $@ $(OBJS)
+ $(ARADD) $@ $(OBJS)
$(RANLIB) $@
test_parse: test_parse.o $(OBJS) $(LIBS)
diff --git a/src/util/profile/configure.in b/src/util/profile/configure.in
index 51c2595001..d4d9052888 100644
--- a/src/util/profile/configure.in
+++ b/src/util/profile/configure.in
@@ -3,6 +3,7 @@ WITH_CCOPTS
CONFIG_RULES
AC_SET_BUILDTOP
AC_PROG_ARCHIVE
+AC_PROG_ARCHIVE_ADD
AC_PROG_RANLIB
ET_RULES
CopyHeader(profile.h,$(BUILDTOP)/include)
diff --git a/src/util/profile/prof_init.c b/src/util/profile/prof_init.c
index 19bcc1241b..9a4a0b533a 100644
--- a/src/util/profile/prof_init.c
+++ b/src/util/profile/prof_init.c
@@ -132,6 +132,11 @@ errcode_t profile_get_values(profile, names, ret_values)
init_list(&values);
+ if (profile == 0) {
+ *ret_values = 0;
+ return 0;
+ }
+
file = profile->first_file;
retval = profile_update_file(file);
if (retval)