From 18556274139cc5a00593471bd745354d98a35303 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 1 Sep 1998 20:11:54 +0000 Subject: More abstraction of file system data types, to move to a 64 bit file interface for the NT SMB's. Created a new define, SMB_STRUCT_STAT that currently is defined to be struct stat - this wil change to a user defined type containing 64 bit info when the correct wrappers are written for 64 bit stat(), fstat() and lstat() calls. Also changed all sys_xxxx() calls that were previously just wrappers to the same call prefixed by a dos_to_unix() call into dos_xxxx() calls. This makes it explicit when a pathname translation is being done, and when it is not. Now, all sys_xxx() calls are meant to be wrappers to mask OS differences, and not silently converting filenames on the fly. Jeremy. (This used to be commit 28aa182dbffaa4ffd86047e608400de4b26e80eb) --- source3/passdb/passdb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/passdb') diff --git a/source3/passdb/passdb.c b/source3/passdb/passdb.c index 0d806fccf7..e58d0d5b00 100644 --- a/source3/passdb/passdb.c +++ b/source3/passdb/passdb.c @@ -901,7 +901,7 @@ BOOL pdb_generate_machine_sid(void) char *p; pstring sid_file; fstring sid_string; - struct stat st; + SMB_STRUCT_STAT st; uchar raw_sid_data[12]; pstrcpy(sid_file, lp_smb_passwd_file()); @@ -911,7 +911,7 @@ BOOL pdb_generate_machine_sid(void) } if (!directory_exist(sid_file, NULL)) { - if (sys_mkdir(sid_file, 0700) != 0) { + if (dos_mkdir(sid_file, 0700) != 0) { DEBUG(0,("generate_machine_sid: can't create private directory %s : %s\n", sid_file, strerror(errno))); return False; -- cgit