summaryrefslogtreecommitdiff
path: root/source3/lib/util.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-01-13 13:03:25 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-01-13 13:03:25 +0000
commit5bd2d3f2ee18284b755b2690de06a03de9391b06 (patch)
tree8f410ec3c2211b34d2f863998de263f7fd3d7c31 /source3/lib/util.c
parent80120a79bc5381d86241b4173f085a00f5bb7e01 (diff)
downloadsamba-5bd2d3f2ee18284b755b2690de06a03de9391b06.tar.gz
samba-5bd2d3f2ee18284b755b2690de06a03de9391b06.tar.bz2
samba-5bd2d3f2ee18284b755b2690de06a03de9391b06.zip
Patch from metze to to make testparm show values for 'workgroup', 'netbios
name' and 'netbios scope'. Probably has a similar effect on SWAT. Also adds '-V' to testparm. Andrew Bartlett (This used to be commit 71f4d8efd36351ddb2180103c160a6d737da62b1)
Diffstat (limited to 'source3/lib/util.c')
-rw-r--r--source3/lib/util.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c
index c572fbe265..9ab33ce2ed 100644
--- a/source3/lib/util.c
+++ b/source3/lib/util.c
@@ -248,13 +248,7 @@ BOOL init_names(void)
int n;
if (global_myname() == NULL || *global_myname() == '\0') {
- fstring name;
-
- fstrcpy( name, myhostname() );
- p = strchr( name, '.' );
- if (p)
- *p = 0;
- if (!set_global_myname(name)) {
+ if (!set_global_myname(myhostname())) {
DEBUG( 0, ( "init_structs: malloc fail.\n" ) );
return False;
}