diff options
author | Andrew Bartlett <abartlet@samba.org> | 2003-01-13 13:03:25 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2003-01-13 13:03:25 +0000 |
commit | 5bd2d3f2ee18284b755b2690de06a03de9391b06 (patch) | |
tree | 8f410ec3c2211b34d2f863998de263f7fd3d7c31 /source3/lib | |
parent | 80120a79bc5381d86241b4173f085a00f5bb7e01 (diff) | |
download | samba-5bd2d3f2ee18284b755b2690de06a03de9391b06.tar.gz samba-5bd2d3f2ee18284b755b2690de06a03de9391b06.tar.xz 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')
-rw-r--r-- | source3/lib/util.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c index c572fbe2654..9ab33ce2edd 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; } |