diff options
author | Andrew Bartlett <abartlet@samba.org> | 2012-08-22 21:00:17 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2012-08-23 15:02:26 +0200 |
commit | 332efe1539d83c0971f151f902f234e5a8bf0690 (patch) | |
tree | 708237d806071ab9f3da8042ee2ef7290f973438 | |
parent | 7e7ed72bbe8949b828000049a87f87d29f4587c2 (diff) | |
download | samba-332efe1539d83c0971f151f902f234e5a8bf0690.tar.gz samba-332efe1539d83c0971f151f902f234e5a8bf0690.tar.bz2 samba-332efe1539d83c0971f151f902f234e5a8bf0690.zip |
s3-pysmbd: Fix error message
-rw-r--r-- | source3/smbd/pysmbd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/pysmbd.c b/source3/smbd/pysmbd.c index 6866ff3539..a4de0e44ee 100644 --- a/source3/smbd/pysmbd.c +++ b/source3/smbd/pysmbd.c @@ -315,8 +315,8 @@ static PyObject *py_smbd_chown(PyObject *self, PyObject *args) ret = SMB_VFS_CHOWN( conn, fname, uid, gid); if (ret != 0) { - status = map_nt_error_from_unix_common(ret); - DEBUG(0,("chwon returned failure: %s\n", strerror(ret))); + status = map_nt_error_from_unix_common(errno); + DEBUG(0,("chown returned failure: %s\n", strerror(errno))); } conn_free(conn); |