r11227: patch from brian moran to fix typo in eventlog message file registry value...
authorGerald Carter <jerry@samba.org>
Thu, 20 Oct 2005 14:29:24 +0000 (14:29 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:05:06 +0000 (11:05 -0500)
(This used to be commit 34c3fd77b320d4fe5e0f1452aa09ea5ec2797494)

source3/registry/reg_eventlog.c
source3/utils/eventlogadm.c

index 61c73abd4b83eab9135d58d368339fb647090b93..d802b18aca200e8476c054a417e6c03277d7253d 100644 (file)
@@ -301,7 +301,7 @@ BOOL eventlog_add_source( const char *eventlog, const char *sourcename,
        }
        TALLOC_FREE( subkeys );
 
-       /* at this point KEY_EVENTLOG/<eventlog>/<sourcename> key is in there. Now need to add EventLogMessageFile */
+       /* at this point KEY_EVENTLOG/<eventlog>/<sourcename> key is in there. Now need to add EventMessageFile */
 
        /* now allocate room for the source's subkeys */
 
@@ -320,14 +320,14 @@ BOOL eventlog_add_source( const char *eventlog, const char *sourcename,
                return False;
        }
        DEBUG( 5,
-              ( "Storing EventLogMessageFile [%s] to eventlog path of [%s]\n",
+              ( "Storing EventMessageFile [%s] to eventlog path of [%s]\n",
                 messagefile, evtlogpath ) );
 
        regdb_fetch_values( evtlogpath, values );
 
        init_unistr2( &data, messagefile, UNI_STR_TERMINATE );
 
-       regval_ctr_addvalue( values, "EventLogMessageFile", REG_EXPAND_SZ,
+       regval_ctr_addvalue( values, "EventMessageFile", REG_SZ,
                             ( char * ) data.buffer,
                             data.uni_str_len * sizeof( uint16 ) );
        regdb_store_values( evtlogpath, values );
index e646833617106f6c5bb3e60af08f94863fd31421..31e853b61f403f2e6a9f80162ccf60c962d010ff 100644 (file)
@@ -61,7 +61,7 @@ int DoAddSourceCommand( int argc, char **argv, BOOL debugflag, char *exename )
 
        if ( argc < 3 ) {
                printf( "need more arguments:\n" );
-               printf( "-o addsource EventlogName SourceName /path/to/eventlogmsg.dll\n" );
+               printf( "-o addsource EventlogName SourceName /path/to/EventMessageFile.dll\n" );
                return -1;
        }
        /* must open the registry before we access it */