summaryrefslogtreecommitdiffstats
path: root/source/lib
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1998-12-01 16:22:09 +0000
committerLuke Leighton <lkcl@samba.org>1998-12-01 16:22:09 +0000
commitf5cedb8c9618b83b63b5e2db867d238eebc7e13c (patch)
treed2ca947606d548b9dc445e27b36a122b25b8382e /source/lib
parent51c1c31768a92d9c57ee6c09b78419bcbc544f03 (diff)
downloadsamba-f5cedb8c9618b83b63b5e2db867d238eebc7e13c.tar.gz
samba-f5cedb8c9618b83b63b5e2db867d238eebc7e13c.tar.xz
samba-f5cedb8c9618b83b63b5e2db867d238eebc7e13c.zip
fix to domain_namemap (domain, ntname wrong way round oops)
stupid compile errors with file_rename() call just created.
Diffstat (limited to 'source/lib')
-rw-r--r--source/lib/domain_namemap.c2
-rw-r--r--source/lib/doscalls.c2
-rw-r--r--source/lib/sids.c10
3 files changed, 7 insertions, 7 deletions
diff --git a/source/lib/domain_namemap.c b/source/lib/domain_namemap.c
index 09908be5fee..8bfaba287b7 100644
--- a/source/lib/domain_namemap.c
+++ b/source/lib/domain_namemap.c
@@ -951,7 +951,7 @@ BOOL lookupsmbpwntnam(char *fullntname, DOM_NAME_MAP *gmep)
{
DEBUG(10,("lookupsmbpwntnam: nt user name %s\n", fullntname));
- if (!split_domain_name(fullntname, nt_name, nt_domain))
+ if (!split_domain_name(fullntname, nt_domain, nt_name))
{
return False;
}
diff --git a/source/lib/doscalls.c b/source/lib/doscalls.c
index 9cdb476d3d7..b213ed81cdb 100644
--- a/source/lib/doscalls.c
+++ b/source/lib/doscalls.c
@@ -143,7 +143,7 @@ int dos_utime(char *fname,struct utimbuf *times)
<warrenb@hpcvscdp.cv.hp.com>
**********************************************************/
-static int copy_reg(char *source, const char *dest)
+int copy_reg(char *source, const char *dest)
{
SMB_STRUCT_STAT source_stats;
int ifd;
diff --git a/source/lib/sids.c b/source/lib/sids.c
index 42f6dc68e27..cd64f1b097b 100644
--- a/source/lib/sids.c
+++ b/source/lib/sids.c
@@ -312,9 +312,9 @@ BOOL generate_sam_sid(char *domain_name)
strupper(file_name);
pstrcat(sid_file, file_name);
- if (file_exists(machine_sid_file, NULL))
+ if (file_exist(machine_sid_file, NULL))
{
- if (file_exists(machine_sid_file, NULL))
+ if (file_exist(machine_sid_file, NULL))
{
DEBUG(0,("both %s and %s exist when only one should, unable to continue\n",
machine_sid_file, sid_file));
@@ -548,10 +548,10 @@ BOOL map_domain_sid_to_name(DOM_SID *sid, char *nt_domain)
}
/**************************************************************************
- splits a name of format \DOMAIN\name into its two components.
+ splits a name of format \DOMAIN\name or name into its two components.
sets the DOMAIN name to global_sam_name if it has not been specified.
***************************************************************************/
-BOOL split_domain_name(char *fullname, char *domain, char *name)
+BOOL split_domain_name(const char *fullname, char *domain, char *name)
{
fstring full_name;
char *p;
@@ -580,6 +580,6 @@ BOOL split_domain_name(char *fullname, char *domain, char *name)
fstrcpy(name, full_name);
}
- DEBUG(5,("name '%s' split into '%s\\%s'\n", fullname, domain, name));
+ DEBUG(10,("name '%s' split into domain:%s and nt name:%s'\n", fullname, domain, name));
return True;
}