summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorRichard Sharpe <sharpe@samba.org>2002-12-08 14:50:06 +0000
committerRichard Sharpe <sharpe@samba.org>2002-12-08 14:50:06 +0000
commit0670d6b1565e99defad8d20653681dcba32fac47 (patch)
treeedae9f300b4c78652b46f5dc9ee6281203dd7c72 /source3
parenta543e6ea629df5ed66c01eaafe89352f86785ff6 (diff)
downloadsamba-0670d6b1565e99defad8d20653681dcba32fac47.tar.gz
samba-0670d6b1565e99defad8d20653681dcba32fac47.tar.bz2
samba-0670d6b1565e99defad8d20653681dcba32fac47.zip
Fix DAT_TIME so it becomes NTTIME and matches Samba source.
Add code to start reading the registry file. (This used to be commit 10bc459dd9d3b5e695f9e18624200705a1bf33dc)
Diffstat (limited to 'source3')
-rw-r--r--source3/utils/editreg.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/source3/utils/editreg.c b/source3/utils/editreg.c
index 3741eeece6..7e40efeead 100644
--- a/source3/utils/editreg.c
+++ b/source3/utils/editreg.c
@@ -299,6 +299,7 @@ Hope this helps.... (Although it was "fun" for me to uncover this things,
#include <stdio.h>
#include <errno.h>
+#include <assert.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
@@ -315,8 +316,8 @@ Hope this helps.... (Although it was "fun" for me to uncover this things,
*/
typedef struct date_time_s {
- int sec, microsec;
-} DATE_TIME;
+ unsigned int low, high;
+} NTTIME;
/*
* Definition of a Key. It has a name, classname, date/time last modified,
@@ -330,7 +331,7 @@ typedef struct reg_key_s {
char *name; /* Name of the key */
char *class_name;
int type; /* One of REG_ROOT_KEY or REG_SUB_KEY */
- DATE_TIME last_mod; /* Time last modified */
+ NTTIME last_mod; /* Time last modified */
struct reg_key_s *owner;
struct key_list_s *sub_keys;
struct val_list_s *values;
@@ -538,6 +539,14 @@ int nt_get_regf_hdr(REGF *regf)
}
}
+ /*
+ * At this point, regf->base != NULL, and we should be able to read the
+ * header
+ */
+
+ ASSERT(regf->base != NULL);
+
+
}
int nt_get_hbin_hdr(REGF *regf, int hbin_offs)