[Date Prev][Date Next] [Chronological] [Thread] [Top]

wrong logging content in slurpd/replog.c (ITS#3275)



Full_Name: Hendrik Harms
Version: 2.1.30
OS: all
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (194.114.62.68)


Some logging statements in slurpd/replog.c seemed to be wrong, may be caused by
copy and paste.

--- replog.c.orig	2003-12-18 04:25:14.000000000 +0100
+++ replog.c	2004-07-31 01:24:17.000000000 +0200
@@ -141,11 +141,11 @@
 #ifdef NEW_LOGGING
 	LDAP_LOG ( SLURPD, ERR, "copy_replog: "
 		"Error: Can't lock replog \"%s\" for write: %s\n",
-		src, sys_errlist[ errno ], 0 );
+		dst, sys_errlist[ errno ], 0 );
 #else
 	Debug( LDAP_DEBUG_ANY,
 		"Error: copy_replog: Can't lock replog \"%s\" for write: %s\n",
-		src, sys_errlist[ errno ], 0 );
+		dst, sys_errlist[ errno ], 0 );
 #endif
 	lock_fclose( rfp, lfp );
 	return( 1 );
@@ -166,11 +166,11 @@
     if ( lock_fclose( dfp, dlfp ) == EOF ) {
 #ifdef NEW_LOGGING
 	LDAP_LOG ( SLURPD, ERR, "copy_replog: "
-		"Error: Error closing \"%s\"\n", src, 0, 0 );
+		"Error: Error closing \"%s\"\n", dst, 0, 0 );
 #else
 	Debug( LDAP_DEBUG_ANY,
 		"Error: copy_replog: Error closing \"%s\"\n",
-		src, 0, 0 );
+		dst, 0, 0 );
 #endif
     }
     if ( lock_fclose( rfp, lfp ) == EOF ) {