diff options
author | Luke Leighton <lkcl@samba.org> | 1998-12-09 16:30:37 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1998-12-09 16:30:37 +0000 |
commit | 58a0cbc0c842187d68872fe021b2ce68a13a12eb (patch) | |
tree | 172d1579c898339ddfe748004fdbc14df0f634e6 /source3/lib | |
parent | 74576a48fdf71e4264a892fda58302053f809670 (diff) | |
download | samba-58a0cbc0c842187d68872fe021b2ce68a13a12eb.tar.gz samba-58a0cbc0c842187d68872fe021b2ce68a13a12eb.tar.bz2 samba-58a0cbc0c842187d68872fe021b2ce68a13a12eb.zip |
oops, util_pwdb.c appears to be included in PASSDB_OBJ not LIB_OBJ.
(This used to be commit ca10eb44909e66a07dc7f88b0a740390f9ec3922)
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/util.c | 14 | ||||
-rw-r--r-- | source3/lib/util_pwdb.c | 17 |
2 files changed, 15 insertions, 16 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c index e5ddda1891..066984962b 100644 --- a/source3/lib/util.c +++ b/source3/lib/util.c @@ -86,6 +86,20 @@ char **my_netbios_names; static char *filename_dos(char *path,char *buf); +/************************************************************* + initialise password databases, domain names, domain sid. +**************************************************************/ +BOOL init_myworkgroup(void) +{ + fstrcpy(global_myworkgroup, lp_workgroup()); + + if (strequal(global_myworkgroup,"*")) + { + DEBUG(0,("ERROR: a workgroup name of * is no longer supported\n")); + return False; + } + return True; +} /**************************************************************************** find a suitable temporary directory. The result should be copied immediately diff --git a/source3/lib/util_pwdb.c b/source3/lib/util_pwdb.c index 03ccdd475f..a2e1ac010d 100644 --- a/source3/lib/util_pwdb.c +++ b/source3/lib/util_pwdb.c @@ -422,26 +422,11 @@ BOOL pwdb_gethexpwd(const char *p, char *pwd) /************************************************************* initialise password databases, domain names, domain sid. **************************************************************/ -BOOL pwdb_init_myworkgroup(void) -{ - fstrcpy(global_myworkgroup, lp_workgroup()); - - if (strequal(global_myworkgroup,"*")) - { - DEBUG(0,("ERROR: a workgroup name of * is no longer supported\n")); - return False; - } - return True; -} - -/************************************************************* - initialise password databases, domain names, domain sid. -**************************************************************/ BOOL pwdb_initialise(BOOL is_server) { get_sam_domain_name(); - if (!pwdb_init_myworkgroup()) + if (!init_myworkgroup()) { return False; } |