diff options
author | John Terpstra <jht@samba.org> | 2003-03-29 23:17:30 +0000 |
---|---|---|
committer | John Terpstra <jht@samba.org> | 2003-03-29 23:17:30 +0000 |
commit | d5cee4991e12333c5bcba9878db522dc70ac0d35 (patch) | |
tree | f9186a8736b6bff2de8ed659571711811a3a2050 /packaging/SuSE/samba-3.0.0-python.diff | |
parent | 6b286811e2ef273806285db95d11dfb10af281b1 (diff) | |
download | samba-d5cee4991e12333c5bcba9878db522dc70ac0d35.tar.gz samba-d5cee4991e12333c5bcba9878db522dc70ac0d35.tar.bz2 samba-d5cee4991e12333c5bcba9878db522dc70ac0d35.zip |
Packaging files for SuSE 8.1
(This used to be commit bacdf3b15c34991df01a49b47c178b36de048743)
Diffstat (limited to 'packaging/SuSE/samba-3.0.0-python.diff')
-rw-r--r-- | packaging/SuSE/samba-3.0.0-python.diff | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/packaging/SuSE/samba-3.0.0-python.diff b/packaging/SuSE/samba-3.0.0-python.diff new file mode 100644 index 0000000000..8c5931e444 --- /dev/null +++ b/packaging/SuSE/samba-3.0.0-python.diff @@ -0,0 +1,44 @@ +--- source/python/py_common.c 2002-12-22 03:07:40.000000000 +0100 ++++ source/python/py_common.c 2002-11-29 11:50:22.000000000 +0100 +@@ -45,9 +45,6 @@ + + void py_samba_init(void) + { +- extern pstring global_myname; +- char *p; +- + if (initialised) + return; + +@@ -59,11 +56,7 @@ + /* Misc other stuff */ + + load_interfaces(); +- +- fstrcpy(global_myname, myhostname()); +- p = strchr(global_myname, '.'); +- if (p) +- *p = 0; ++ init_names(); + + initialised = True; + } +--- source/python/py_smb.c 2002-11-27 03:54:20.000000000 +0100 ++++ source/python/py_smb.c 2002-11-29 11:50:22.000000000 +0100 +@@ -61,7 +61,6 @@ + static char *kwlist[] = { "called", "calling", NULL }; + char *calling_name = NULL, *called_name; + struct nmb_name calling, called; +- extern pstring global_myname; + BOOL result; + + if (!PyArg_ParseTupleAndKeywords(args, kw, "s|s", kwlist, &called_name, +@@ -69,7 +68,7 @@ + return NULL; + + if (!calling_name) +- calling_name = global_myname; ++ calling_name = global_myname(); + + make_nmb_name(&calling, calling_name, 0x00); + make_nmb_name(&called, called_name, 0x20); |