summaryrefslogtreecommitdiffstats
path: root/source/python
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2002-11-29 01:10:31 +0000
committerTim Potter <tpot@samba.org>2002-11-29 01:10:31 +0000
commit7adb6af115dfc1189c2894d45a796b7b8dfe7a05 (patch)
tree5dbf0190bbc84ce350a46a3b92bd09cf83c28033 /source/python
parent80e61a7546b2ac070f8dda56b9810a352ac669e4 (diff)
downloadsamba-7adb6af115dfc1189c2894d45a796b7b8dfe7a05.tar.gz
samba-7adb6af115dfc1189c2894d45a796b7b8dfe7a05.tar.xz
samba-7adb6af115dfc1189c2894d45a796b7b8dfe7a05.zip
Merge of global_myname() fixes from HEAD.
Diffstat (limited to 'source/python')
-rw-r--r--source/python/py_common.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/source/python/py_common.c b/source/python/py_common.c
index 364271d57c4..6e299470bf8 100644
--- a/source/python/py_common.c
+++ b/source/python/py_common.c
@@ -45,9 +45,6 @@ static BOOL initialised;
void py_samba_init(void)
{
- extern pstring global_myname;
- char *p;
-
if (initialised)
return;
@@ -59,11 +56,7 @@ void py_samba_init(void)
/* Misc other stuff */
load_interfaces();
-
- fstrcpy(global_myname, myhostname());
- p = strchr(global_myname, '.');
- if (p)
- *p = 0;
+ init_names();
initialised = True;
}