summaryrefslogtreecommitdiff
path: root/source3/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
commit531ecf607a87d76e9a6b734dfd3fab94500c9029 (patch)
treee97e46146ef9490d85c8d0c46a759496f524637c /source3/python
parent602635d484323b89b15234a3c29d6dfce4261b97 (diff)
downloadsamba-531ecf607a87d76e9a6b734dfd3fab94500c9029.tar.gz
samba-531ecf607a87d76e9a6b734dfd3fab94500c9029.tar.bz2
samba-531ecf607a87d76e9a6b734dfd3fab94500c9029.zip
Merge of global_myname() fixes from HEAD.
(This used to be commit 7adb6af115dfc1189c2894d45a796b7b8dfe7a05)
Diffstat (limited to 'source3/python')
-rw-r--r--source3/python/py_common.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/source3/python/py_common.c b/source3/python/py_common.c
index 364271d57c..6e299470bf 100644
--- a/source3/python/py_common.c
+++ b/source3/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;
}