[Python-modules-commits] [pysmbc] 01/04: Import pysmbc_1.0.15.5.orig.tar.bz2
Dmitry Shachnev
mitya57 at moszumanska.debian.org
Sun Feb 14 15:09:17 UTC 2016
This is an automated email from the git hooks/post-receive script.
mitya57 pushed a commit to branch master
in repository pysmbc.
commit 5534a88a5fd8e9aa3671f2d3eae49d36a1905459
Author: Dmitry Shachnev <mitya57 at gmail.com>
Date: Sun Feb 14 13:17:34 2016 +0300
Import pysmbc_1.0.15.5.orig.tar.bz2
---
NEWS | 3 +++
PKG-INFO | 2 +-
README | 35 -----------------------------------
setup.py | 2 +-
smbc/context.c | 9 ++++++---
5 files changed, 11 insertions(+), 40 deletions(-)
diff --git a/NEWS b/NEWS
index a8431dc..ae14f89 100644
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,9 @@
NEWS
----
+New in 1.0.15.5:
+* fix NUL-termination bug
+
New in 1.0.15.4:
* added some constants
diff --git a/PKG-INFO b/PKG-INFO
index aa6ebb7..ff846b9 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: pysmbc
-Version: 1.0.15.4
+Version: 1.0.15.5
Summary: Python bindings for libsmbclient
Home-page: http://cyberelk.net/tim/software/pysmbc/
Author: ['Tim Waugh <twaugh at redhat.com>', 'Tsukasa Hamano <hamano at osstech.co.jp>', 'Roberto Polli <rpolli at babel.it>']
diff --git a/README b/README
deleted file mode 100644
index 82dfa74..0000000
--- a/README
+++ /dev/null
@@ -1,35 +0,0 @@
-SMB bindings for Python
------------------------
-
-These Python bindings are intended to wrap the libsmbclient API.
-
-Currently libsmbclient 3.2.x or later is required.
-
-
-To build, simply use
- # make
-
-
-
-
-Test
-------
-To run Python tests in tests/ you need python-nose
-See nose documentation http://readthedocs.org/docs/nose
-
-To run all the tests execute
-# nosetests
-
-To run just one test, use
-# nosetests file.py
-
-To selectively run test methods, printing output to console
-# nosetests -vs test_context.py:test_Workgroup
-
-
-NOTE: to run your tests, you need
- * a running samba server
- * one shared folder with
- * rw permissions
- * guest ok = no
-
diff --git a/setup.py b/setup.py
index db2e878..f255270 100644
--- a/setup.py
+++ b/setup.py
@@ -64,7 +64,7 @@ def pkgconfig_I (pkg):
return dirs
setup (name="pysmbc",
- version="1.0.15.4",
+ version="1.0.15.5",
description="Python bindings for libsmbclient",
long_description=__doc__,
author=["Tim Waugh <twaugh at redhat.com>",
diff --git a/smbc/context.c b/smbc/context.c
index e8b3eaf..acf4ec5 100644
--- a/smbc/context.c
+++ b/smbc/context.c
@@ -85,9 +85,12 @@ auth_fn (SMBCCTX *ctx,
return;
}
- strncpy (workgroup, use_workgroup, wgmaxlen);
- strncpy (username, use_username, unmaxlen);
- strncpy (password, use_password, pwmaxlen);
+ strncpy (workgroup, use_workgroup, wgmaxlen - 1);
+ workgroup[wgmaxlen - 1] = '\0';
+ strncpy (username, use_username, unmaxlen - 1);
+ username[unmaxlen - 1] = '\0';
+ strncpy (password, use_password, pwmaxlen - 1);
+ password[pwmaxlen - 1] = '\0';
Py_DECREF (result);
debugprintf ("<- auth_fn(), got callback result\n");
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/pysmbc.git
More information about the Python-modules-commits
mailing list