summaryrefslogtreecommitdiffstats
path: root/source/script/mkproto.awk
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2005-11-17 20:08:59 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:05:26 -0500
commit2df34c9403446d12f1ceeac38cbda5d3ba805b02 (patch)
tree3a5eeef249ebe9c6ab8f047186579015abad6fb0 /source/script/mkproto.awk
parentba2f94aeae1f8e69d53fc360785adf222a8c9c6e (diff)
downloadsamba-2df34c9403446d12f1ceeac38cbda5d3ba805b02.tar.gz
samba-2df34c9403446d12f1ceeac38cbda5d3ba805b02.tar.xz
samba-2df34c9403446d12f1ceeac38cbda5d3ba805b02.zip
r11761: * fix clearing of event logs by truncating the tdb.
This feature got broken in some of the other updates. Now each open handle stores an pointer to an open tdb data structure (not the tdb pointer itself). Clearing can be done with a simple elog_close_tdb( elog, True ) to force a close and then calling elog_open_tdb( logname, True ) to force an tdb truncate. Permissions on existing tdbs are maintained which is important. * We don't currently handle backup. Haven't looked at the format of a backuped up eventlog to know what the deal is.
Diffstat (limited to 'source/script/mkproto.awk')
-rw-r--r--source/script/mkproto.awk2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/script/mkproto.awk b/source/script/mkproto.awk
index 73a1c2b3f0a..a0f3096c842 100644
--- a/source/script/mkproto.awk
+++ b/source/script/mkproto.awk
@@ -136,7 +136,7 @@ END {
gotstart = 1;
}
- if( $0 ~ /^NODE_STATUS_STRUCT|SMB_STRUCT_DIR/ ) {
+ if( $0 ~ /^NODE_STATUS_STRUCT|SMB_STRUCT_DIR|ELOG_TDB/ ) {
gotstart = 1;
}