]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#10092 fix prev commit for non-Windows
authorHoward Chu <hyc@openldap.org>
Fri, 8 Dec 2023 03:41:40 +0000 (03:41 +0000)
committerHoward Chu <hyc@openldap.org>
Fri, 8 Dec 2023 03:41:40 +0000 (03:41 +0000)
servers/slapd/logging.c

index 789838aa4137c4fdb541dbb1e2c0a12a85ad65b6..7dc33bde3fc24993809ae973d614057dccd637c6 100644 (file)
@@ -159,11 +159,11 @@ slap_debug_print( const char *data )
                        iov[0].iov_base = syslog_prefix;
                        iov[0].iov_len = splen;
 #endif
-               } else {
-                       ptr += poffset; /* only nonzero if logfile-format was explicitly set */
                }
 
 #ifdef _WIN32
+               if ( logfile_format <= LFMT_DEBUG )
+                       ptr += poffset; /* only nonzero if logfile-format was explicitly set */
                len = write( logfile_fd, ptr, len );
 #else
                len = writev( logfile_fd, iov, 2 );