* Makefile.in (all): Use ARADD to facilitate incremental
authorEzra Peisach <epeisach@mit.edu>
Tue, 25 Apr 1995 01:19:00 +0000 (01:19 +0000)
committerEzra Peisach <epeisach@mit.edu>
Tue, 25 Apr 1995 01:19:00 +0000 (01:19 +0000)
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

src/util/profile/ChangeLog
src/util/profile/Makefile.in
src/util/profile/configure.in
src/util/profile/prof_init.c

index 89a08484c2bccd1789080a7b92e9d2cb1ed3a272..ee809ceabaaac95d4ac9e6adf160fb1e308b2ec4 100644 (file)
@@ -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
index 6851a5be00a178bf2f69a16fedb92d20b834f57b..b13253823b1b2ddd6c512c8e9579d123c1a0fb09 100644 (file)
@@ -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)
index 51c2595001cd659a2501fec32accef1b1b6066a5..d4d9052888f923435d1a7da9a7051e6fa396be09 100644 (file)
@@ -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)
index 19bcc1241b457ba6bb1d8541f8b008cc9e792f32..9a4a0b533ad38796d6e6dc0e0d923c868de1a445 100644 (file)
@@ -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)