]> git.sur5r.net Git - openldap/commitdiff
fix schema install w/ VPATH
authorKurt Zeilenga <kurt@openldap.org>
Thu, 28 Sep 2000 20:14:46 +0000 (20:14 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Thu, 28 Sep 2000 20:14:46 +0000 (20:14 +0000)
update bprint

CHANGES
build/top.mk
libraries/liblber/bprint.c
servers/slapd/Makefile.in

diff --git a/CHANGES b/CHANGES
index 762fee9d2550f83a89ba0b3b340effff409f3452..275b3c54e35c197d5ffb0f05323df7c8e71a78fc 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -5,6 +5,9 @@ OpenLDAP 2.0.X Engineering
        Fixed slapd/sasl no cred bug
        Fixed slapd idletimeout lock bug (ITS#767)
        Fixed slurpd TLS initialization bug (ITS#768)
+       Updated -llber bprint routine
+       Build Environment
+               Fixed VPATH schema install
 
 OpenLDAP 2.0.4 Release
        Fixed clients printf/usage bugs (ITS#749)
index c5fc7ebdbff6b174c58f114c2dcf426e55b85075..75791071dff3585ed9788ff07d3e3b86a8d48c1b 100644 (file)
@@ -34,6 +34,7 @@ moduledir = @libexecdir@$(ldap_subdir)
 sbindir = @sbindir@
 sharedstatedir = @sharedstatedir@
 sysconfdir = @sysconfdir@$(ldap_subdir)
+schemadir = $(sysconfdir)/schema
 
 EXEEXT = @EXEEXT@
 OBJEXT = @OBJEXT@
index 05c993ebb431e6443ddd3da8b3475be3886cda6e..6379f26ad3accffbc03233458e2a4c53c8ffd10e 100644 (file)
@@ -144,12 +144,49 @@ ber_bprint(
 
        assert( data != NULL );
 
+<<<<<<< bprint.c
     memset( out, '\0', BPLEN );
     for ( ;; ) {
        if ( len < 1 ) {
            sprintf( buf, "\t%s\n", ( i == 0 ) ? "(end)" : out );
                (*ber_pvt_log_print)( buf );
            break;
+=======
+       /* in case len is zero */
+       line[0] = '\n';
+       line[1] = '\0';
+       
+       for ( i = 0 ; i < len ; i++ ) {
+               int n = i % 16;
+               unsigned off;
+
+               if( !n ) {
+                       if( i ) (*ber_pvt_log_print)( line );
+                       memset( line, ' ', sizeof(line)-2 );
+                       line[sizeof(line)-2] = '\n';
+                       line[sizeof(line)-1] = '\0';
+
+                       off = i % 0x0ffffU;
+
+                       line[ 2 ] = hexdig[ 0x0f & (off >> 12) ];
+                       line[ 3 ] = hexdig[ 0x0f & (off >>  8) ];
+                       line[ 4 ] = hexdig[ 0x0f & (off >>  4) ];
+                       line[ 5 ] = hexdig[ 0x0f & off ];
+                       line[ 6 ] = ':';
+               }
+
+               off = BP_OFFSET + n*3 + ((n >= 8)?1:0);
+               line[ off   ] = hexdig[ 0x0f & ( data[i] >> 4 ) ];
+               line[ off+1 ] = hexdig[ 0x0f & data[i] ];
+               
+               off = BP_GRAPH + n;
+
+               if ( isprint( data[i] )) {
+                       line[ BP_GRAPH + n ] = data[i];
+               } else {
+                       line[ BP_GRAPH + n ] = '.';
+               }
+>>>>>>> 1.34
        }
 
 #ifndef LDAP_HEX
index 1c3b14747d0b22177718d1959fa89301ade96b9a..ed5f06487b2f0f10117a7989a63e63524d71bb8a 100644 (file)
@@ -251,17 +251,17 @@ all-cffiles: slapd
        touch all-cffiles
 
 install-schema: FORCE
-       @-$(MKDIR) $(DESTDIR)$(sysconfdir)/schema
-       @cd $(srcdir) ; \
-       for i in schema/*.schema ; do \
-               if test ! -f $(DESTDIR)$(sysconfdir)/$$i; then \
-                       echo "installing $$i in $(sysconfdir)"; \
-                       echo $(INSTALL) $(INSTALLFLAGS) -m 444 $$i $(DESTDIR)$(sysconfdir)/$$i; \
-                       $(INSTALL) $(INSTALLFLAGS) -m 444 $$i $(DESTDIR)$(sysconfdir)/$$i; \
+       @-$(MKDIR) $(DESTDIR)$(schemadir)
+       @cd $(srcdir)/schema ; \
+       for i in *.schema ; do \
+               if test ! -f $(DESTDIR)$(schemadir)/$$i; then \
+                       echo "installing $$i in $(schemadir)"; \
+                       echo $(INSTALL) $(INSTALLFLAGS) -m 444 $$i $(DESTDIR)$(schemadir)/$$i; \
+                       $(INSTALL) $(INSTALLFLAGS) -m 444 $$i $(DESTDIR)$(schemadir)/$$i; \
                else \
-                       echo "PRESERVING EXISTING SCHEMA FILE $(DESTDIR)$(sysconfdir)/$$i"; \
+                       echo "PRESERVING EXISTING SCHEMA FILE $(DESTDIR)$(schemadir)/$$i"; \
                fi; \
-               $(INSTALL) $(INSTALLFLAGS) $$i $(DESTDIR)$(sysconfdir)/$$i.default ; \
+               $(INSTALL) $(INSTALLFLAGS) $$i $(DESTDIR)$(schemadir)/$$i.default ; \
        done
 
 install-conf: FORCE